Resolve "Not a valid Win32 application" problem

Source: Internet
Author: User
resolving the issue of "not a valid Win32 application" Hong Jongjun compiles a program with VC2013 that works under Windows 8, Windows 7 (64-bit, 32-bit). However, when running under Win xp,win2003, the error message cannot be run, with the specified executable file as "not a valid WIN32 application."

First, the problem analysis with Exescope Open the EXE, found that the operating system needs to be "6.0", that is, only Windows Vista or higher operating systems run.

Ii. Solutions 1. Open the project source code with VC2013, select the item, and then right-click the menu to open the Item Properties dialog box; 2. Select the configuration Properties-> general in the left tree list, and then select Visual Studio 2013-windows in the platform toolset on the right. XP (V120_XP), then click OK.

After the change, recompile, you will be able to run normally.
Then open the EXE with Exescope and discover that the operating system needs to be "5.1", which can run under Windows XP or higher operating systems.


Third, refer to Microsoft's explanation http://msdn.microsoft.com/zh-SG/library/jj851139.aspx

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.