首页 > 代码库 > cannot convert from '_TCHAR *' to 'char *'

cannot convert from '_TCHAR *' to 'char *'

Reference: Why can‘t convert TCHAR* to char*

 

Need to Use Multi-Byte Character Set in project‘s setting.

If your project defines UNICODE/_UNICODE, which is the same as specifying it to be a Unicode build in the project settings, TCHARs will be wchar_t rather than char.

cannot convert from '_TCHAR *' to 'char *'