Visual Studio: the specified file is an unrecognized or unsupported binary format

Source: Internet
Author: User
Tags unsupported

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

Favorite

Share [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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.