A project has recently been ported to XP, but after running EXE under XP, it is always an error that XXX.exe is not a valid Win32 application. But the output is really Win32 release version of EXE.
The solution is as follows:
1. Install VS2012 Update 1
2. Install VS2012 update 4
3. Restart VS, open project, right-click Project->properties->configuration properties->general->platform toolset-> in the drop-down list, select Windows XP (V110_XP) "->apply
Then build the project again.
If not, there are two possible reasons:
1, if XP does not install the VC environment, need to install vcredist for vs2012, Microsoft Official website can be downloaded.
2, Detection VS2012 project properties,Linker->system->subsystem, whether set up correctly, I here is nothing to choose, just have not been able to run XP, select Console (/subsystem: CONSOLE) is OK.
VS2012 development Project migrated to WinXP