IntelliSense: “const char *” 类型的实参与 “LPCWSTR” 类型的形参不兼容

右键项目名称–>属性–>配置属性–>字符集–>使用多字节字符集
MFC Debug
但是这样之后出现了新问题:

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,点击 项目->属性->常规 (里面的)->字符集 然后选择使用使用多字节字符集。

然后重新生成解决方案你就会惊喜的发现成功了
--------------------- 作者:乐学勤思 来源:CSDN 原文:https://blog.csdn.net/tianzhijiaozi19/article/details/56666733
版权声明:本文为博主原创文章,转载请附上博文链接!

Debug Assertion Failed!

相关文章:

  • 2021-11-02
  • 2022-12-23
  • 2022-02-14
  • 2021-04-09
  • 2021-06-26
  • 2021-09-10
  • 2021-11-20
猜你喜欢
  • 2021-12-26
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
相关资源
相似解决方案