Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamically load a vb6 dll in vb.net

Status
Not open for further replies.

dcushnie

Programmer
Feb 2, 2005
28
CA
I am writing an app in vb.net 2003 where I need to load a dll dynamically. I do so using the following: [Assembly].LoadFrom("C:\Development\vb6 dll\dll.dll")
The problem is that the dll is written in vb6 and when it executes that line it crashes and gives the following error message: "The format of the file 'dll.dll' is invalid." and the exception is of type BadImageFormatException. Does anyone know a way for me to load this dll?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top