阅读:2130回复:4
IApplication接口的一个问题(对我非常重要),希望大侠们指点!
<P>我使用的是ArcObjects 8.3, 与C#,,,要得到扩展组件,使用IApplication的FindExtentionByName方法来获得扩展组件。但是我不能实例化一个支持IApplication接口的类,比如:</P>
<P>IApplication app=new ESRI.ArcObjects.Gx.Application(); 出现错误:</P> <P><FONT color=#ee1169>未处理的“System.Runtime.InteropServices.COMException”类型的异常出现在 RStranslation.exe 中。其他信息: 带有 CLSID {96563542-8369-11D0-B4AA-0000F8037368} 的 COM 对象无效或未注册。</FONT></P> <P>怎么回事?请各位大侠指点, 我的目的是实现扩展组件,比如Editor,ArcScan等。</P> |
|
1楼#
发布于:2005-04-18 17:06
<P>为什么没人回我贴呢??</P><P> 请求各位大侠指点</P>
|
|
2楼#
发布于:2005-04-19 11:17
<P>My question 有问题吗〉? 为什么没人回复呢,我很急!!!</P>
|
|
3楼#
发布于:2007-04-23 14:41
<P>我也遇到了这个问题,在注册表里,并没有IApplication相关组件被注册了,所有会这样.<BR>目前我正在找arcgis 的破解文件,看能不能解决这个问题.如果有人才,希望能够共享一下.谢谢<BR>QQ:516892503</P>
|
|
4楼#
发布于:2007-04-23 20:52
<P>在帮助里有说明,<STRONG>IApplication只在arcmap等桌面程序环境里才有,脱离了arcmap等桌面程序就用不了了</STRONG></P>
<P>This VBA macro finds the Spatial Analyst Extension using its name string.</P><PRE><CODE>Sub FindExtByName() Dim pExtMgr As IExtensionManager Dim pExt As IExtension Set pExtMgr = Application Set pExt = pExtMgr.FindExtension("Spatial Analyst") End Sub</CODE></PRE> <P><CODE></CODE>The following VBA code shows how to find the custom extension using its ProgID.</P><PRE><CODE>Sub FindExtByProgID() Dim pExtMgr As IExtensionManager Dim pExt As IExtension Dim pUID As New UID Set pExtMgr = Application pUID.Value = "MyCustomExt.clsMyExtension" Set pExt = pExtMgr.FindExtension(pUID) End Sub</CODE></PRE> |
|
|