开发者

Convert VB6 .dll file to a .net dll

开发者 https://www.devze.com 2023-04-10 19:39 出处:网络
I have a .dll file written in VB6. I understand that I can add this .dll file as a reference in my VS project, bu开发者_如何学Got I need to be able to add this .dll file as an embedded resource to my

I have a .dll file written in VB6. I understand that I can add this .dll file as a reference in my VS project, bu开发者_如何学Got 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号