VS2008出现atlcom.h 431错误的解决办法
2010-12-31 12:43
288 查看
一个简单的MFC程序,在给新建对话框添加类,编译之后就出现了如下的错误:
1>d:/programs/microsoft visual studio 9.0/vc/atlmfc/include/atlcom.h(431) : e
rror C2146: 语法错误 : 缺少“;”(在标识符“rgclsidAllowed”的前面)
1>d:/programs/microsoft visual studio 9.0/vc/atlmfc/include/atlcom.h(431) : e
rror C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>d:/programs/microsoft visual studio 9.0/vc/atlmfc/include/atlcom.h(431) : e
rror C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>d:/programs/microsoft visual studio 9.0/vc/atlmfc/include/atlcom.h(6053) :
error C2039: “rgclsidAllowed”: 不是“ATL::ATL_PROPMAP_ENTRY”的成员
1> d:/programs/microsoft visual studio 9.0/vc/atlmfc/include/atlcom.h(
422) : 参见“ATL::ATL_PROPMAP_ENTRY”的声明
1>d:/programs/microsoft visual studio 9.0/vc/atlmfc/include/atlcom.h(6053) :
error C2660: “ATL::CComVariant::ReadFromStream”: 函数不接受 4 个参数
========================================================
解决:
上网查找了相关资料(原来自己之前安装了VS2008SP1CHSX1512981补丁),
现在需要安装vs2008如下补丁:VS90SP1-KB971092-x86
下载地址:http://www.microsoft.com/downloads/en/details.aspx?familyid=294de390-3c94-49fb-a014-9a38580e64cb&displaylang=en
补丁成功安装后,问题解决~
1>d:/programs/microsoft visual studio 9.0/vc/atlmfc/include/atlcom.h(431) : e
rror C2146: 语法错误 : 缺少“;”(在标识符“rgclsidAllowed”的前面)
1>d:/programs/microsoft visual studio 9.0/vc/atlmfc/include/atlcom.h(431) : e
rror C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>d:/programs/microsoft visual studio 9.0/vc/atlmfc/include/atlcom.h(431) : e
rror C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>d:/programs/microsoft visual studio 9.0/vc/atlmfc/include/atlcom.h(6053) :
error C2039: “rgclsidAllowed”: 不是“ATL::ATL_PROPMAP_ENTRY”的成员
1> d:/programs/microsoft visual studio 9.0/vc/atlmfc/include/atlcom.h(
422) : 参见“ATL::ATL_PROPMAP_ENTRY”的声明
1>d:/programs/microsoft visual studio 9.0/vc/atlmfc/include/atlcom.h(6053) :
error C2660: “ATL::CComVariant::ReadFromStream”: 函数不接受 4 个参数
========================================================
解决:
上网查找了相关资料(原来自己之前安装了VS2008SP1CHSX1512981补丁),
现在需要安装vs2008如下补丁:VS90SP1-KB971092-x86
下载地址:http://www.microsoft.com/downloads/en/details.aspx?familyid=294de390-3c94-49fb-a014-9a38580e64cb&displaylang=en
补丁成功安装后,问题解决~
相关文章推荐
- VS2008出现atlcom.h错误的解决办法
- 一个COM调用时出现的错误及解决办法
- 启动minicom时出现错误"Device /dev/ttyS0 is locked minicom"的解决办法
- 安装vs2008中文时出现错误Write error in the file VS2008TeamSuite90DayTrialCHSX1429243.iso. Probably the disk is full 的解决办法
- 关于VS2008发布网站出现错误HRESULT:0x80070057 (E_INVALIDARG)的解决办法
- VS2008出现atlcom.h(431) : error C2146
- VS2008的项目出现错误“找不到windows.h”的解决办法
- 启动minicom时出现错误"Device /dev/ttyS0 is locked minicom"的解决办法
- 从 IClassFactory 为 CLSID 为 {00024500-0000-0000-C000-000000000046} 的 COM 组件创建实例失败,原因是出现以下错误: 8001010a解决办法
- VS2008 出现 error C2664 错误的解决办法
- C#在调用office的PowerPoint时出现 对 COM 组件的调用返回了错误 HRESULT E_FAIL。解决办法。
- cloudera-scm-server启动出现Error creating bean with name 'entityManagerFactoryBean'与HHH010003: JDBC Driver class not found: com.mysql.jdbc.Driver错误解决办法(图文详解)
- 启动minicom时出现错误"Device /dev/ttyS0 is locked minicom"的解决办法
- 启动minicom时出现错误"Device /dev/ttyS0 is locked minicom"的解决办法
- Android编译出现com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536错误解决办法
- 启动minicom时出现错误"Device /dev/ttyS0 is locked minicom"的解决办法
- VS2008的项目出现错误“找不到windows.h”的解决办法
- 从 IClassFactory 为 CLSID 为 {00024500-0000-0000-C000-000000000046} 的 COM 组件创建实例失败,原因是出现以下错误: 8001010a解决办法
- 从 IClassFactory 为 CLSID 为 {00024500-0000-0000-C000-000000000046} 的 COM 组件创建实例失败,原因是出现以下错误: 8001010a解决办法 .
- 启动minicom时出现错误"Device /dev/ttyS0 is locked minicom"的解决办法