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 ap
For me, this helped: 1. Configuration properties/General/Platform Toolset = Windows XP (V110_xp) 2. C/C++ Preprocessor definitions, add "WIN32" 3. Linker/System/Minimum required version = 5.01
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.
There are at least two solutions:
I believe this error can also be thrown if your project is targeting a framework version that is not installed on the server you are deploying to.
I had the same issue on Windows XP when running an application built with a static version of Qt 5.7.0 (MSVC 2013).
Adding the following line to the project's .pro file solved it:
QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
I got this problem while launching a VS2013 32-bit console application in powershell, launching it in cmd did not issue this problem.