VS2008错误:‘rgclsidAllowed' : is not a member of 'ATL::ATL_PROPMAP_ENTRY'

我的编译错误信息:

 

1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcom.h(431) : error C2146: syntax error : missing ';' before identifier 'rgclsidAllowed'
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcom.h(431) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcom.h(431) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcom.h(6053) : error C2039: 'rgclsidAllowed' : is not a member of 'ATL::ATL_PROPMAP_ENTRY'
1>        D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcom.h(422) : see declaration of 'ATL::ATL_PROPMAP_ENTRY'
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcom.h(6053) : error C2660: 'ATL::CComVariant::ReadFromStream' : function does not take 4 arguments

 

 

 

需要 Visual Studio 2008 Service Pack 1 ATL Security Update:VS90SP1-KB971092-x86.exe。安装即可。

 

 

下载及参考地址:

 

下载:http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=15303

 

参考:http://forums.autodesk.com/t5/Autodesk-ObjectARX/Compile-error-for-SimpleToolPalette-vcproj-ARX2010/td-p/2574583

 

参考2:http://social.msdn.microsoft.com/Forums/en/vcgeneral/thread/ba315aa1-5a6a-4e84-9bbc-008503e3a77e

 

 

你可能感兴趣的:(VS2008错误:‘rgclsidAllowed' : is not a member of 'ATL::ATL_PROPMAP_ENTRY')