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.

原文地址:https://www.cnblogs.com/cindy-hu-23/p/4194068.html