htx2005
路人甲
路人甲
  • 注册日期2005-01-30
  • 发帖数13
  • QQ
  • 铜币164枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1320回复:0

ae9.2+vc2005问题!

楼主#
更多 发布于:2008-01-31 00:35
<DIV>我是一个新手,用VC++2005和Arcgisengine 9.2开发。遇到下面问题:<BR>当我在项目中stdAfx.h,加入以下代码时:<BR><BR>pragma warning(push)<BR>#pragma warning(disable : 4192) /* Ignore warnings for types that are duplicated in win32 header files */<BR>#pragma warning(disable : 4146) /* Ignore warnings for use of minus on unsigned types */<BR>#import "d:\Program Files\ArcGIS\com\esriSystem.olb" raw_interfaces_only, raw_native_types, no_namespace, named_guids, exclude("OLE_COLOR", "OLE_HANDLE", "VARTYPE")<BR>#import "d:\Program Files\ArcGIS\com\esriSystemUI.olb" raw_interfaces_only, raw_native_types, no_namespace, named_guids<BR>#pragma warning(pop)<BR><BR>运行后出现3个错误:<BR>1>d:\test\sample2\sample2\debug\esrisystemui.tlh(30) : error C3121: cannot change GUID for class 'ICommand'<BR>1>        d:\program files\microsoft visual studio 8\vc\platformsdk\include\oledb.h(6361) : see declaration of 'ICommand'<BR>1>d:\test\sample2\sample2\debug\esrisystemui.tlh(159) : error C2011: 'IProgressDialog' : 'struct' type redefinition<BR>1>        d:\program files\microsoft visual studio 8\vc\platformsdk\include\shlobj.h(2427) : see declaration of 'IProgressDialog'<BR>1>d:\test\sample2\sample2\debug\esrisystemui.tlh(174) : error C2011: 'ICommand' : 'struct' type redefinition<BR>1>        d:\program files\microsoft visual studio 8\vc\platformsdk\include\oledb.h(6361) : see declaration of 'ICommand'<BR><BR>如果把#import "d:\Program Files\ArcGIS\com\esriSystemUI.olb" raw_interfaces_only, raw_native_types, no_namespace, named_guids代码去掉,运行OK!<BR><BR>这个问题无法解决,请帮忙!谢谢了。</DIV>
喜欢0 评分0
游客

返回顶部