I am just starting MS Visual Studio 2005. My laptop has a 64 bit Intel microprocessor and the OS installed is 64 bit Windows 7. I created a DLL in VC++ 2005 using a Export Definitions File (.def) and then created an application on VB to test it.
The entire procedure was completed as instructed by my teacher and every thing was fine until I tried to run the application. The error returned was a BadImageFormat Exception (0x8007000B) and I have completely no idea what went wrong.
I have read the posts in these forums and I think it might be that VC++ 2005 creates a 32 bit (x86) version of DLL. Also I tried changing the format so that it produces a 64 bit (x64) version of DLL but it returned a different error on compilation. The machine module and the target module were incompatible.
Please help. I'm running out of time on this project.
Yes, it is true that the compiler produces 32-bit code, but that should not have been the problem. I also have 64-bit Windows 7 and never have a problem using 32-bit DLLs. What version of VB are you tring to use?