1. 无法将参数 1 从“const char [3]”转换为“const wchar_t *”
解决方案:
1.由于VS默认字符集为UNICODE,可以使用_T("")宏,让程序支持Unicode编码.定义于tchar.h
/* Generic text macros to be used with string literals and character constants.
Will also allow symbolic constants that resolve to same. */
#define _T(x) __T(x)
#define _TEXT(x) __T(x)
2.把工程设置多字节集

网友评论