當雙擊可執行檔,運行正常。而當VS工程中調試運行,會跳出提示:“the specified file is an unrecognized or unsupported binary format”。
最後查看了網上所說:
down vote
favoriteshare [fb]
share [tw] |
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? 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. |
找到了答案:把開始的應用程式設定錯了。