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.
精彩评论