阅读:3509回复:10
客户端如何注册、调用.net+ao8.3生成的DLL?(急)客户端如何注册、调用.net+ao8.3生成的DLL?(急) 我用以下方法: path C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\ regasm xyh.dll /tlb /codebase 但在ArcMap中的定制对话框中不显示出来,用添加文件就出错 |
|
1楼#
发布于:2004-09-04 10:50
Adding COM category registration functions Previously, you may have used the ESRI Component Category Manager or the ESRI Compile and Register addin for Visual Basic 6 to add a class to a component category. When using the Component Category Manager, you must select the .tlb file for your component rather than the .dll file. For example, browse to WalkthroughVBNET.tlb.Visual Studio .NET provides the ability to specify a function that executes when an assembly exposed for COM interop is registered on a system, and another function that executes when the assembly is unregistered. This allows you the to automatically register your class to a component category when the assembly is registered.
可以看看下面的地址 http://arcobjectsonline.esri.com/GettingStarted/Walkthrough1VB.htm [此贴子已经被作者于2004-9-4 10:51:55编辑过] |
|
|
2楼#
发布于:2004-09-04 12:30
这个早就看过了,在本机编译之后就可用了,不需注册,但我现在是客户端,是把DLL拷到客户端之后如何注册?怎么样注册才能在ArcMap中定制对话框里找到它?
|
|
3楼#
发布于:2004-09-04 12:36
我现在使用的是arcgis9,vb6,编写好的dll,可以到任何一台安装了arcgis的电脑注册使用啊,是注册的时候找不到入口?
|
|
|
4楼#
发布于:2004-09-06 08:50
regasm xyh.dll /tlb:xyh.tlb /codebase
|
|
|
5楼#
发布于:2004-09-06 08:56
而且要看 regasm 执行时,时候注册成功,如果缺少引用库时,会注册不成功。
|
|
|
6楼#
发布于:2004-09-06 09:28
问题还没解决吗,虽然我是在9.0 环境下开发,刚开始也遇到了这样的问题,搞了好久也没弄清楚。 除了regasm 注册外,我发现另一个问题就是资源文件在组件中的引用也会产生不能成功加载,请仔细检查源代码。 |
|
|
7楼#
发布于:2004-09-06 14:03
问题解决了,谢谢暗黑杀手!
|
|
8楼#
发布于:2004-09-06 15:47
不谢,哈。。。
|
|
|
9楼#
发布于:2005-04-21 13:02
regasm xyh.dll /tlb:xyh.tlb /codebase 是什么意思,“/”表示选择一个吗? |
|