Programs written under Win7 with VS2012 or VS2013 run under XP "are not a valid Win32 application

Source: Internet
Author: User

Workaround 1 :

linker -system -Subsystem -Console orWindows?behind the"Minimum version"is a5.01

Solutions 2 :

Resolve "Not a valid Win32 application" issue

Hong Jongjun

A program was compiled with VC2013 that works correctly under Windows 8, Windows 7 (64-bit, 32-bit). However, when running under Win xp,win2003, the error message cannot be run, and the specific "executable file specified is not a valid WIN32 application".

?

???? I. Problem analysis

Open the EXE with Exescope and discover that the operating system requirement is "6.0", that is, it can only be run under Windows Vista or a higher operating system.

? ? ? ?

?

? ? ? ? Ii. Solutions

? ? ? ? 1. Open the project source code with VC2013, select the project, and then right-click on the Properties menu to open the Project Properties dialog box;

? ? ? ? 2. In the Left tree list, select Configuration Properties, General, and then in the list on the right, in the platform toolset, select Visual Studio 2013-windows XP (V120_XP), and then click Confirm.

After you've changed it, you'll be able to run it again.
The EXE is then opened with Exescope and the operating system requirement is "5.1", which can be run under Windows XP or a higher operating system.

? ? ? ?

?

???? iii.. Reference to Microsoft's explanation

? ? ? ?? http://msdn.microsoft.com/zh-SG/library/jj851139.aspx

?

Solutions 3 :

1. Download and install the upgrade package http://www.microsoft.com/zh-cn/download/details.aspx?id=39305

2.

This can be done by:

1. in "solution Explorer " Select the item, then right-click on the menu to point properties.

2. Select configuation Properties in the property Pages and select General , then select Visual Studio 2012-windows XP (V110_XP) in Platform toolset .

Specific instructions for this method can be found in:

Http://www.cnblogs.com/hwangbae/archive/2012/11/27/2790637.html

Programs written under Win7 with VS2012 or VS2013 run under XP "are not a valid Win32 application

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.