MFC中使用ATL报错:error C4430: missing type specifier

我在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错误

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

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

原文地址:https://www.cnblogs.com/time-is-life/p/9498581.html