如何将其他.dll文件转换为.net com dll文件

编程入门 行业动态 更新时间:2024-10-21 05:37:54
本文介绍了如何将其他.dll文件转换为 com dll文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

解决方案

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

本文发布于:2023-11-17 07:15:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609271.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   转换为   如何将   net   dll

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!