xxxxxx.exe is not a valid Win32 application

c, c++, visual-studio-2012, windows

Solution

VS 2012 applications cannot be run under Windows XP.

See this VC++ blog on why and how to make it work.

It seems to be supported/possible from Feb 2013. See noelicus answer below on how to.

Problem

I have small C/C++ project in Visual Studio 2012 RC This applications parses the argv and then calling another .exe file with `ShellExecute` My application works perfect on Windows7 but on Windows XP x86 trhows Is not a valid Win32 application error. I have compiled it with Mutli-thread(/MT) and Win32 Platform This is my #includes ``` #include <string> #include <iostream> #include <Windows.h> #include <fstream> #include <cstdio> #include <vector> #include <windowsx.h> #include <shlobj.h> #include <stdio.h> #include <tchar.h> #include <direct.h> ``` Thanks

Original source