luguoliang211
路人甲
路人甲
  • 注册日期2006-08-08
  • 发帖数10
  • QQ
  • 铜币208枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1746回复:1

求助:关于VC开发AE中的#import

楼主#
更多 发布于:2008-08-18 11:38
<P>#pragma warning(push)<BR>#pragma warning(disable:4192)<BR>#pragma warning(disable:4146)<BR>#pragma warning(disable:4099)<BR>#import "c:\Program Files\ArcGIS\com\esriSystem.olb"raw_interfaces_only,raw_native_types,<BR>no_namespace,named_guids,exclude("OLE_HANDLE","OLE_COLOR","VARTYPE")<BR>#import "c:\Program Files\ArcGIS\com\esriSystemUI.olb"raw_interfaces_only,raw_native_types,<BR>no_namespace,named_guids,exclude("OLE_HANDLE","OLE_COLOR","VARTYPE")<BR>#import "c:\Program Files\ArcGIS\com\esriGeometry.olb"raw_interfaces_only,raw_native_types,<BR>no_namespace,named_guids,exclude("OLE_HANDLE","OLE_COLOR","VARTYPE")<BR>#pragma warning(pop)<BR>导入如上代码,调试运行发现有102个错误</P>
<P>现将部分错误贴下:</P>
<P>Compiling...<BR>StdAfx.cpp<BR>c:\c++实例\mymap\stdafx.h(27) : error C2059: syntax error : 'newline'<BR>c:\c++实例\mymap\stdafx.h(28) : error C2501: 'no_namespace' : missing storage-class or type specifiers<BR>c:\c++实例\mymap\stdafx.h(28) : error C2501: 'named_guids' : missing storage-class or type specifiers<BR>c:\c++实例\mymap\stdafx.h(29) : error C2059: syntax error : 'newline'<BR>c:\c++实例\mymap\debug\esrisystemui.tlh(19) : error C2501: 'exclude' : missing storage-class or type specifiers<BR>c:\c++实例\mymap\debug\esrisystemui.tlh(19) : error C2078: too many initializers<BR>c:\c++实例\mymap\debug\esrisystemui.tlh(19) : error C2440: 'initializing' : cannot convert from 'char [8]' to 'int'<BR>        This conversion requires a reinterpret_cast, a C-style cast or function-style cast<BR>c:\c++实例\mymap\debug\esrisystemui.tlh(19) : error C2143: syntax error : missing ';' before 'namespace'<BR>c:\c++实例\mymap\stdafx.h(30) : error C2501: 'no_namespace' : missing storage-class or type specifiers<BR>c:\c++实例\mymap\stdafx.h(30) : error C2086: 'no_namespace' : redefinition<BR>c:\c++实例\mymap\stdafx.h(30) : error C2501: 'named_guids' : missing storage-class or type specifiers<BR>c:\c++实例\mymap\stdafx.h(30) : error C2086: 'named_guids' : redefinition<BR>c:\c++实例\mymap\stdafx.h(31) : error C2059: syntax error : 'newline'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(19) : error C2501: 'exclude' : missing storage-class or type specifiers<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(19) : error C2374: 'exclude' : redefinition; multiple initialization<BR>        c:\c++实例\mymap\stdafx.h(28) : see declaration of 'exclude'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(19) : error C2078: too many initializers<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(19) : error C2440: 'initializing' : cannot convert from 'char [8]' to 'int'<BR>        This conversion requires a reinterpret_cast, a C-style cast or function-style cast<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(19) : error C2143: syntax error : missing ';' before 'namespace'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2638) : error C2039: 'IPersistStream' : is not a member of 'esriSystem'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2647) : error C2039: 'IStream' : is not a member of 'esriSystem'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2647) : error C2143: syntax error : missing ',' before '*'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2647) : error C2059: syntax error : '*'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2649) : error C2027: use of undefined type 'esriSystem'<BR>        c:\c++实例\mymap\debug\esrigeometry.tlh(2647) : see declaration of 'esriSystem'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2649) : error C2143: syntax error : missing ',' before '*'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2649) : error C2059: syntax error : '*'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2679) : error C2027: use of undefined type 'esriSystem'<BR>        c:\c++实例\mymap\debug\esrigeometry.tlh(2647) : see declaration of 'esriSystem'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2679) : error C2143: syntax error : missing ',' before '*'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2679) : error C2059: syntax error : '*'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2686) : error C2027: use of undefined type 'esriSystem'<BR>        c:\c++实例\mymap\debug\esrigeometry.tlh(2647) : see declaration of 'esriSystem'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2686) : error C2143: syntax error : missing ',' before '*'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2686) : error C2059: syntax error : '*'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2703) : error C2027: use of undefined type 'esriSystem'<BR>        c:\c++实例\mymap\debug\esrigeometry.tlh(2647) : see declaration of 'esriSystem'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2703) : error C2143: syntax error : missing ',' before '*'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2703) : error C2059: syntax error : '*'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2705) : error C2027: use of undefined type 'esriSystem'<BR>        c:\c++实例\mymap\debug\esrigeometry.tlh(2647) : see declaration of 'esriSystem'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2705) : error C2143: syntax error : missing ',' before '*'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2705) : error C2059: syntax error : '*'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2861) : error C2027: use of undefined type 'esriSystem'<BR>        c:\c++实例\mymap\debug\esrigeometry.tlh(2647) : see declaration of 'esriSystem'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2861) : error C2061: syntax error : identifier 'WKSPoint'<BR>c:\c++实例\mymap\debug\esrigeometry.tlh(2864) : error C2027: use of undefined type 'esriSystem'<BR>        c:\c++实例\mymap\debug\esrigeometry.tlh(2647) : see declaration of 'esriSystem'</P>
喜欢0 评分0
luguoliang211
路人甲
路人甲
  • 注册日期2006-08-08
  • 发帖数10
  • QQ
  • 铜币208枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2008-08-18 11:39
请问一下,出现上面问题是什么原因?
举报 回复(0) 喜欢(0)     评分
游客

返回顶部