win32 dll is not working for c# application.
-
Hi all, this error comes when i am using win32 dll in c# application. An unhandled exception of type 'System.BadImageFormatException' occurred in Test.exe Additional information: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) please help me for this. thanks in advance.
-
Hi all, this error comes when i am using win32 dll in c# application. An unhandled exception of type 'System.BadImageFormatException' occurred in Test.exe Additional information: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) please help me for this. thanks in advance.
32/64 bit mismatch! you have to set the target cpu to x86, then it will work.
I cannot remember: What did I before google?
-
32/64 bit mismatch! you have to set the target cpu to x86, then it will work.
I cannot remember: What did I before google?
-
if you are running a .net application, build for target "any cpu", the program will start as a 64 bit application - if the machine is running a 64 bit windows. and if your win32.dll (doesn´t sound like an .net dll) is build for 32 bit (why do i think it is? maybe the 32 in win32.dll?, then it is not possible. you have to build the .net app explicitly for x86 target. dot.
I cannot remember: What did I before google?