const char*到LPCWSTR的转换
精选 转载利用CString做一下中间转换。
const char *str;CString temp = str;
LPCWSTR app = (LPCWSTR)(temp.AllocSysString());
这样就把str转化成LPCWSTR类型的app了
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
不能将参数 1 从const char [*]转换为LPCWSTR
了解ANSI和Unicode编
ANSI Unicode -
转:const char*, char const*, char*const的区别c++ #include main函数 字符串常量 赋值
















