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?
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?