阅读:2017回复:2
关于ArcObjects组件开发
<P align=center><B>一</B><B><FONT face="Times New Roman"> </FONT></B><B>使用</B><B><FONT face="Times New Roman">COM</FONT></B><B>扩展</B><B><FONT face="Times New Roman">ArcObjects<p></p></FONT></B></P>
<P ><FONT face="Times New Roman"> </FONT>在新类中使用<FONT face="Times New Roman">esriCore</FONT>的接口,但以自己的代码实现这些接口。在<FONT face="Times New Roman">Visual Basic</FONT>开发环境下,可以通过生成一个新的<FONT face="Times New Roman">ActiveX</FONT>工程(<FONT face="Times New Roman">DLL</FONT>,<FONT face="Times New Roman">EXE</FONT>或是<FONT face="Times New Roman">OCX</FONT>)来实现这一点,对类型库和新类命名,并在工程中引用<FONT face="Times New Roman">esriCore.old</FONT>,实现某个<FONT face="Times New Roman">esriCore</FONT>接口,然后编译组件,使用<FONT face="Times New Roman">ArcMap</FONT>或者<FONT face="Times New Roman">ArcCatalog</FONT>注册组件。<p></p></P> <P ><FONT face="Times New Roman"> </FONT><B>二</B><B><FONT face="Times New Roman"> ITool</FONT></B><B>和</B><B><FONT face="Times New Roman">IToolControl<p></p></FONT></B></P> <P ><FONT face="Times New Roman"> ITool</FONT>为逻辑工具,它和具体的操作对应;<p></p></P> <P ><FONT face="Times New Roman"> IToolControl</FONT>为真实工具,用户通过它来实现和系统的交互。<p></p></P> <P ><FONT face="Times New Roman"> ‘**************************************************<p></p></FONT></P> <P ><FONT face="Times New Roman"> ‘</FONT>实现<FONT face="Times New Roman">Icommand</FONT>接口<p></p></P> <P ><FONT face="Times New Roman"> Implements Icommand<p></p></FONT></P> <P ><FONT face="Times New Roman"> ‘</FONT>在<FONT face="Times New Roman">oncreate</FONT>事件中传入<FONT face="Times New Roman">hook</FONT>,即应用程序对象<p></p></P> <P ><FONT face="Times New Roman"> Private function Icommand_oncreate(byval hook as object)<p></p></FONT></P> <P ><p><FONT face="Times New Roman" size=3> </FONT></p></P> <P ><FONT face="Times New Roman"> End function<p></p></FONT></P> <P ><FONT face="Times New Roman"> ‘**************************************************<p></p></FONT></P> <P ><p><FONT face="Times New Roman" size=3> </FONT></p></P> |
|
1楼#
发布于:2004-11-21 09:34
顶以下
|
|
2楼#
发布于:2013-08-28 18:38
关于这方面的开发怎这么少啊?java的更少 ,什么情况
|
|