When you double-click an executable file, it runs normally. When the vs project is called for trial run, the system prompts "the specified file is an unrecognized or unsupported binary format ".
Finally, I checked what I said on the Internet:
Down vote
FavoriteShare [FB]
Share [TW] |
I have a vs2008 solution ining 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? Answer: Bart was absolutely correct. I checked the Solution Properties (Solution Explorer pane-> right click on "whateever solution"), single startup project was set to the wrong project. changed it to "tester" and all was well. |
After finding the answer, I set the initial application to an error.