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