user725913
user725913

Reputation:

Convert VB6 .dll file to a .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?

Upvotes: 4

Views: 3450

Answers (1)

Robert Harvey
Robert Harvey

Reputation: 180908

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.

Upvotes: 5

Related Questions