我在MFC中使用ATL函数A2W的时候报如下的错误:

error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

【解决方法】

https://www.xuebuyuan.com/1194846.html:

-----------------------

遇到这个问题的电脑配置是Windows 7 32位+Visual Studio 2008 SP1

解决办法1:

项目->设置->配置设置->常规->使用动态ATL

 

解决办法2:

也可以去Microsoft官网下VS90SP1-KB971092-x86.exe和VS90SP1-KB973675-x86.exe

这两个是针对include头文件的更新 对应于解决2146和4430错误

------------------------

 

我用了第一种方法,解决了。 

相关文章:

  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2021-06-08
猜你喜欢
  • 2022-01-14
  • 2022-01-25
  • 2021-07-11
  • 2021-09-03
  • 2022-12-23
  • 2022-01-09
相关资源
相似解决方案