C + + programs written by Vs2013+win8 are executed in xp/win7

Source: Internet
Author: User

A C + + program written under Windows 8 with Visual Studio 2013 performs an error on a Windows XP system that says "not a valid Win32 application".

In Windows 7, error messages such as the.




Workaround:

Follow these steps, for example, to resolve them.


First step: Open the properties of project. Click Configuration Properties, general, Platform toolset, select Visual Studio 2013-windows XP (V120_XP), for example.



* If your program is an MFC program, you also need to change the "Use of MFC" item in "General" to "use MFC in Static Library".

For example with.


Second step: in the properties of project, click "Configuration Properties", "C + +", "Code Generation", "Execution Library". Change the execution library to multithreading (/MT). For example with.



The third step. Compile project again.

In addition, the external libraries that your project relies on are compiled with the previous operating procedures.


Thus,C + + programs written in Visual Studio 2013 under Windows 8 can be executed in Windows xp/windows 7.

The principle needs to be supplemented


article omissions fallacy, but also hope that friends advice.

C + + programs written by Vs2013+win8 are executed in xp/win7

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.