I have a very basic program in C++ compiled in VS 11 Beta on windows 7.
All project settings are default except Runtime Library. I changed Multi-threaded DLL (/MD) to Mu
VS 11 no longer supports Windows XP. This is by design from Microsoft.
http://connect.microsoft.com/VisualStudio/feedback/details/690617
This behavior is by design in MFC and CRT for Visual Studio 11 Beta. The minimum supported operating systems are Windows Server 2008 SP2 and Windows Vista. Windows XP is not a supported operating system for the Beta release (design-time or run-time).
Reading further into the discussion, there's a possibility that Windows XP may be supported in the release version. I wouldn't bank on it though.
Edit: Microsoft have relented: Targeting Windows XP with C++ in Visual Studio 2012
Probably you compiled for 64 bit Windows. Windows XP, however, only supports 32 bit code.