I have a VS2008 solution containing two C++ projects. One is a Win32/console .dll and the other is a tester program to test that dll, also a Win32 console app.
When I build the solution, even with a clean build and with the Debug Command set to the hardcoded path to the executable, trying to debug presents a messagebox saying,
“the specified file is an unrecognized or unsupported binary format”.
The program it is trying to execute is the source of tester.cpp.
Can someone suggest a cure? What information may I provide to help solve this problem?
Please make sure that your test application (it should be an executable: .exe) is the one you’re running and not the DLL. Set it as the “startup project” for example.
You can do so from within your Solution Explorer by right-clicking the appropriate project and selecting “Set as startup project”.