ArcMap中注册编写好的dll提示Can't load type library from specific file

用VS写了一个自己定义的工具,想要加载到ArcMap中,在Customize添加的时候总是出错,不知是怎么回事。
总是提示:Can't load type library from specific file.

 

将dll拷到目标机器上,然后执行:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regasm.exe YourTool.dll /tlb:YourTool.tlb /codebase,可以建个批处理文件。前提是目标机器上装有.net framwork 2.0.注册之后就可以在ARCMAP CUSTOMIZE里找到你自己的工具了。

你可能感兴趣的:(library)