当前位置:编程学习 > C#/ASP.NET >>

vc6的工程关联arcGIS9.3移植到vs2008中关联arcGIS10报错

出现了如下问题
f:\libmgr\esricore.tlh(1428) : error C3121: cannot change GUID for class 'IRow'
1>        c:\program files\microsoft sdks\windows\v6.0a\include\oledb.h(12447) : see declaration of 'IRow'
1>f:\libmgr\esricore.tlh(1452) : error C3121: cannot change GUID for class 'IRelationship'
1>        c:\program files\microsoft sdks\windows\v6.0a\include\structuredquery.h(1630) : see declaration of 'IRelationship'
1>f:\libmgr\esricore.tlh(2694) : error C3121: cannot change GUID for class 'ITableDefinition'
1>        c:\program files\microsoft sdks\windows\v6.0a\include\oledb.h(8740) : see declaration of 'ITableDefinition'
1>f:\libmgr\esricore.tlh(15704) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
1>f:\libmgr\esricore.tlh(23736) : error C2011: 'IProgressDialog' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\shlobj.h(1690) : see declaration of 'IProgressDialog'
1>f:\libmgr\esricore.tlh(25236) : error C2011: 'ICommand' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\oledb.h(5947) : see declaration of 'ICommand'
1>f:\libmgr\esricore.tlh(37959) : error C2011: 'IRow' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\oledb.h(12447) : see declaration of 'IRow'
1>f:\libmgr\esricore.tlh(37997) : error C2011: 'ICursor' : 'struct' type redefinition
1>        c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\ocdb.h(620) : see declaration of 'ICursor'
1>f:\libmgr\esricore.tlh(38606) : error C2504: 'IRow' : base class undefined
1>f:\libmgr\esricore.tlh(38629) : error C2011: 'IRelationship' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\structuredquery.h(1630) : see declaration of 'IRelationship'
1>f:\libmgr\esricore.tlh(66032) : error C2011: 'ITableDefinition' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\oledb.h(8740) : see declaration of 'ITableDefinition'
1>f:libmgr\esricore.tlh(123395) : error C2027: use of undefined type 'IProgressDialog'
1>        c:\program files\microsoft sdks\windows\v6.0a\include\shlobj.h(1690) : see declaration of 'IProgressDialog'
1>f:\libmgr\esricore.tlh(123396) : error C2027: use of undefined type 'IProgressDialog'
1>        c:\program files\microsoft sdks\windows\v6.0a\include\shlobj.h(1690) : see declaration of 'IProgressDialog'
1>f:\libmgr\esricore.tlh(123397) : error C2027: use of undefined type 'IProgressDialog'
1>        c:\program files\microsoft sdks\windows\v6.0a\include\shlobj.h(1690) : see declaration of 'IProgressDialog'
1>f:\libmgr\esricore.tlh(123398) : error C2027: use of undefined type 'IProgressDialog'
1>        c:\program files\microsoft sdks\windows\v6.0a\include\shlobj.h(1690) : see declaration of 'IProgressDialog'
1>f:\libmgr\esricore.tlh(123584) : error C2027: use of undefined type 'ICommand'
1>        c:\program files\microsoft sdks\windows\v6.0a\include\oledb.h(5947) : see declaration of 'ICommand'
按照网上的方法 也解决不了 --------------------编程问答-------------------- 重新
#import arcgis 10  --------------------编程问答-------------------- 重现#import之后出现了下面的状况
1>f:\libmgr\esricore.tlh(28) : error C2371: 'esriDrawPhase' : redefinition; different basic types
1>        f:\libmgr\debug\esrisystem.tlh(958) : see declaration of 'esriDrawPhase'
1>f:\libmgr\esricore.tlh(136) : error C2371: 'esriGeometryType' : redefinition; different basic types
1>        f:\libmgr\debug\esrigeometry.tlh(984) : see declaration of 'esriGeometryType'
1>f:\libmgr\esricore.tlh(137) : error C2371: 'esriGeometryDimension' : redefinition; different basic types
1>        f:\sisp\libmgr\debug\esrigeometry.tlh(1009) : see declaration of 'esriGeometryDimension'
1>f:\sisp\libmgr\esricore.tlh(155) : error C2371: 'esriSpatialReferenceError' : redefinition; different basic types
1>        f:\debug\esrigeometry.tlh(1170) : see declaration of 'esriSpatialReferenceError'
1>f:\libmgr\esricore.tlh(158) : error C2371: 'esriSRLimitsEnum' : redefinition; different basic types
反正 加了之后错误超过了100个 
没有加之前是只有50多个
补充:.NET技术 ,  组件/控件开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,