|
阅读:3498回复:12
请教esricore.tlh文件是怎么产生的?VC+AO
还没有用VC写过ao的程序,看了gis兄的东东,由于不能运行,现在茫然不知如何开始写AO+VC的代码?请GIs或其他VC+AO的有经验者指导谢谢。
|
|
|
1楼#
发布于:2004-08-13 10:36
<P>咳,主要还是 侬的 COM 技术水平不过关, 哈哈。</P><P>学好ArcGIS 开发 只要 2个 COM 技术+ AO 对象模型。</P><P>当然还要有对业务的了解。</P>
|
|
|
2楼#
发布于:2004-08-05 10:38
*.tlh 是在gis接口调用中vc自动生成的,在一个IWorkspaceFactory上使用find the definition 就可以进入这个文件,定义了com的接口标识。这个文件不用关心。它不影响程序的运行。
|
|
|
3楼#
发布于:2004-08-03 10:40
一直用VB在开发AO,一天为了测试一个功能用C#写了一段代码,我的天那个艰难啊,当年C的东西全记不得了,呵呵!语言的学习永不止境,啥时候才能真正提高到一个高度哦!
|
|
|
|
4楼#
发布于:2004-08-02 19:47
仅仅是讨了一个说法,其他仍无进展。头痛啊。
|
|
|
5楼#
发布于:2004-08-02 15:27
<P>哈。。</P><P>祝贺。</P>
|
|
|
|
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" /> |
|
|
7楼#
发布于:2004-08-02 08:52
up
|
|
|
8楼#
发布于:2004-07-31 20:25
谢谢。
|
|
|
9楼#
发布于:2004-07-30 14:15
<P>你在esri 论坛里搜索 esricore.tlh ,很找到大概7个吧</P>
|
|
|
上一页
下一页