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