hello sir!

i am a new user here. I am trying to compile a C code(for 32bit x86 systems) on VS2008 using Lindo API 6.1 for windows(x86) link.

My OS is Windows 7 Home Premium x64.

After successfully compiling the code, when i run the exe file for debugging, I get the error:

samp.exe - Bad Image

C:\Windows\System32\lindo6_1.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support.

Can you please help me out ? This dll file is shipped with the API package.

Check the DLL for corruption.
Try switching your compile target (for every module you build) to 32-bit, rather than x64.
Sometimes the compiler will default to build for the current processor, and this breaks libraries compiled for the older versions.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.