Visual Studio 2012 compile for XP - not valid win32 - v110_xp
问题 I have Visual Studio 2012 update 4 and the Windows SDK 7.1. I select the "Visual Studio 2012 - Windows XP (v110_xp)" toolkit and the include directories change to use $(WindowsSdkDir_71A). No errors are given during compile (e.g. it successfully finds winres.h), but when I try to run the exe on Windows XP SP3, it still errors: "test.exe is not a valid Win32 application." For testing, it's just a C++ hello world. #include <cstdio> int main(void) { printf("Hello, World!\r\n"); return 0; } How