title: Compile MFC program with VS 2012 running on windows xp
body: <p>I have the VS 2012 on windows 7. I want to build a MFC program which can be run on windows XP. However I received the following error while I moved the exe file to windows XP: “It is not a valid win32 application”.</p>
  
  <p>After exploring on internet, I discovered that I should install <a href="http://support.microsoft.com/kb/2797915">Visual Studio 2012 Update 1</a> and change the Platform toolset from “Visual Studio 2012 (v110)” to “Visual Studio 2012 - Windows XP (v110_xp)”. I also changed the target machine to “MachineX86 (/MACHINE:X86)”.  This time I receive another error while I run the exe file on windows XP: “the procedure entry point initializecriticalsection could not be located in the dynamic library KERNEL32.dll”.</p>
  
  <p>Now I do not know what to do :(. I do appreciate if some can help me :). </p>
  
  <p>Please note that I tried a simple dialog MFC program without adding any code to it. </p>