如何将其他.dll文件转换为.net com dll文件 [英] How to convert other .dll file to .net com dll file

查看:94
本文介绍了如何将其他.dll文件转换为.net com dll文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





任何身体告诉如何将其他.dll文件转换为.Net com组件。

解决方案

您可以在.Net中使用互操作



如果您在visual studio中工作,那么您可以简单地添加您的dll文件的引用。如果.Net支持dll,那么visual studio将在面纱后面创建一个包装器。这意味着如果它被成功引用你将能够正常使用它.net dll。



请注意,这个其他dll不是.Net dll,只是一个包装器和请求将从包装器到实际的dll。



你仍然需要在你想要执行你的应用程序的机器上注册那个dll。

Hi,

Any body tell How to convert other .dll file to .Net com component.

解决方案

You may use interop in .Net

If you are working in visual studio, then you may simply add reference of your dll file. If the dll is supported by .Net then visual studio will create a wrapper on this behind the veil. That means if it is referenced successfully you would be able to use it as normal .net dll.

Please note that this other dll is not .Net dll, just a wrapper over this & request will be made from wrapper to actual dll.

You still need to register that dll on machine on which you want to execute your application.


这篇关于如何将其他.dll文件转换为.net com dll文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆