IntelliSense: “const char *” 类型的实参与 “LPCWSTR” 类型的形参不兼容
右键项目名称–>属性–>配置属性–>字符集–>使用多字节字符集
但是这样之后出现了新问题:
error MSB8031: Building an MFC project for a non-Unicode character set is deprecated。. You must change the project property to Unicode or download an additional library. Seehttp://Go.microsoft.com/fwlink/p/?LinkId=286820 for more information.
1、下载vc_mbcsmfc.exe
2、 关闭vs2013,然后安装vc_mbcsmfc.exe
3、打开vs2013,点击 项目->属性->常规 (里面的)->字符集 然后选择使用使用多字节字符集。
然后重新生成解决方案你