将 VB6 .dll 文件转换为 .net dll
我有一个用 VB6 编写的 .dll 文件。我知道我可以将此 .dll 文件添加为 VS 项目中的引用,但我需要能够将此 .dll 文件作为嵌入式资源添加到我的 VS 解决方案中。然后我想调用这个 .dll 文件来调用函数。
但是我无法将 .dll 文件作为程序集加载,因为它是用 VB6 编写的。假设我不能简单地将此代码重写为 .net,是否有人有一个可行的解决方案可以将此 dll 转换为可识别的程序集文件?
I have a .dll file written in VB6. I understand that I can add this .dll file as a reference in my VS project, but I need to be able to add this .dll file as an embedded resource to my VS solution. I then would like to invoke this .dll file to call a function.
However I cannot load the .dll file as an assembly because it was written in VB6. Assuming I cannot simply rewrite this code to .net, does anyone have a working solution for converting this dll to a recognizable assembly file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不需要转换它,只需将它作为非托管 DLL 引用即可。请参阅http://msdn.microsoft.com/en-us/magazine/cc301501.aspx有关如何执行此操作的说明。
You won't need to convert it, you just need to reference it as an unmanaged DLL. See http://msdn.microsoft.com/en-us/magazine/cc301501.aspx for instructions on how to do this.