ge_zi
论坛版主
论坛版主
  • 注册日期2003-09-04
  • 发帖数278
  • QQ
  • 铜币633枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:3513回复:12

请教esricore.tlh文件是怎么产生的?VC+AO

楼主#
更多 发布于:2004-07-29 19:33
还没有用VC写过ao的程序,看了gis兄的东东,由于不能运行,现在茫然不知如何开始写AO+VC的代码?请GIs或其他VC+AO的有经验者指导谢谢。
喜欢0 评分0
bluewood_cn
路人甲
路人甲
  • 注册日期2004-04-19
  • 发帖数118
  • QQ
  • 铜币551枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2004-08-13 10:36
<P>咳,主要还是 侬的 COM 技术水平不过关, 哈哈。</P><P>学好ArcGIS 开发  只要 2个                     COM 技术+ AO 对象模型。</P><P>当然还要有对业务的了解。</P>
举报 回复(0) 喜欢(0)     评分
ge_zi
论坛版主
论坛版主
  • 注册日期2003-09-04
  • 发帖数278
  • QQ
  • 铜币633枚
  • 威望0点
  • 贡献值0点
  • 银元0个
2楼#
发布于:2004-08-05 10:38
*.tlh 是在gis接口调用中vc自动生成的,在一个IWorkspaceFactory上使用find the definition 就可以进入这个文件,定义了com的接口标识。这个文件不用关心。它不影响程序的运行。
举报 回复(0) 喜欢(0)     评分
lilysunny
路人甲
路人甲
  • 注册日期2003-08-18
  • 发帖数160
  • QQ
  • 铜币499枚
  • 威望0点
  • 贡献值0点
  • 银元0个
3楼#
发布于:2004-08-03 10:40
一直用VB在开发AO,一天为了测试一个功能用C#写了一段代码,我的天那个艰难啊,当年C的东西全记不得了,呵呵!语言的学习永不止境,啥时候才能真正提高到一个高度哦!
黑夜给了你黑色的眼睛,你却拿它来翻白眼!
举报 回复(0) 喜欢(0)     评分
ge_zi
论坛版主
论坛版主
  • 注册日期2003-09-04
  • 发帖数278
  • QQ
  • 铜币633枚
  • 威望0点
  • 贡献值0点
  • 银元0个
4楼#
发布于:2004-08-02 19:47
仅仅是讨了一个说法,其他仍无进展。头痛啊。
举报 回复(0) 喜欢(0)     评分
destnity
路人甲
路人甲
  • 注册日期2004-03-25
  • 发帖数341
  • QQ
  • 铜币272枚
  • 威望0点
  • 贡献值0点
  • 银元0个
5楼#
发布于:2004-08-02 15:27
<P>哈。。</P><P>祝贺。</P>
签 名: 不能超过 250 个字符 文字将出现在您发表的文章的结尾处。
举报 回复(0) 喜欢(0)     评分
ge_zi
论坛版主
论坛版主
  • 注册日期2003-09-04
  • 发帖数278
  • QQ
  • 铜币633枚
  • 威望0点
  • 贡献值0点
  • 银元0个
6楼#
发布于:2004-08-02 15:11
<FONT color=#000080>#pragma</FONT> warning(push)
<CODE><FONT color=#000080>#pragma</FONT></CODE> warning(disable : 4192) <CODE><FONT color=#008000>/* Ignore warnings for types that are duplicated in win32 header files */</FONT></CODE>
<CODE><FONT color=#000080>#pragma</FONT></CODE> warning(disable : 4146) <CODE><FONT color=#008000>/* Ignore warnings for use of minus on unsigned types */</FONT></CODE>

<CODE><FONT color=#000080>#import</FONT></CODE> "\Program Files\ArcGIS\com\esriSystem.olb" <CODE><FONT color=#008000>/* Type library to generate C++ wrappers */</FONT></CODE> \
  raw_interfaces_only,                             <CODE><FONT color=#008000>/* Don't add raw_ to method names        */</FONT></CODE> \
  raw_native_types,                                <CODE><FONT color=#008000>/* Don't map to DTC smart types          */</FONT></CODE> \
  no_namespace,                                    <CODE><FONT color=#008000>/* Don't wrap with C++ name space        */</FONT></CODE> \
  named_guids,                                     <CODE><FONT color=#008000>/* Named guids and declspecs             */</FONT></CODE> \
  exclude("OLE_COLOR", "OLE_HANDLE", "VARTYPE")    <CODE><FONT color=#008000>/* Exclude conflicting types             */</FONT></CODE>

<CODE><FONT color=#000080>#pragma</FONT></CODE> warning(pop)
<P>The main use of #import is to create C++ code for interface definitions, GUID constants (LIBID, CLSID and IID) and define smart pointers. The exclude ("OLE_COLOR", "OLE_HANDLE", "VARTYPE") is required because Windows defines these to be unsigned longs, which conflicts with the ArcGIS definition of long梩his was required to support Visual Basic as a client of ArcObjects, since Visual Basic has no support for unsigned types. There are no issues with excluding these.</P><P>You can view the code generated by #import in the ".tlh" files (type library header file - similar format to a .h). You may also find a ".tli" file (type library implementation - corresponds to .cpp). These files can be large but are only regenerated when the type libraries change.</P><img src="images/post/smile/dvbbs/em08.gif" />
举报 回复(0) 喜欢(0)     评分
ge_zi
论坛版主
论坛版主
  • 注册日期2003-09-04
  • 发帖数278
  • QQ
  • 铜币633枚
  • 威望0点
  • 贡献值0点
  • 银元0个
7楼#
发布于:2004-08-02 08:52
up
举报 回复(0) 喜欢(0)     评分
ge_zi
论坛版主
论坛版主
  • 注册日期2003-09-04
  • 发帖数278
  • QQ
  • 铜币633枚
  • 威望0点
  • 贡献值0点
  • 银元0个
8楼#
发布于:2004-07-31 20:25
谢谢。
举报 回复(0) 喜欢(0)     评分
destnity
路人甲
路人甲
  • 注册日期2004-03-25
  • 发帖数341
  • QQ
  • 铜币272枚
  • 威望0点
  • 贡献值0点
  • 银元0个
9楼#
发布于:2004-07-30 14:15
<P>你在esri 论坛里搜索 esricore.tlh ,很找到大概7个吧</P>
签 名: 不能超过 250 个字符 文字将出现在您发表的文章的结尾处。
举报 回复(0) 喜欢(0)     评分
上一页
游客

返回顶部