2

I've created a simple MFC application through visual studio 2013 32-bit.
Then when tested on Windows XP I find it does not work, and display an error message the application is not a valid win32 application.

Note that the application works fine in Windows 7.

What's wrong ?

Lion King
  • 32,851
  • 25
  • 81
  • 143

1 Answers1

2

For everyone who wants a direct solution, try to apply the following steps.

Steps:

  1. Right-click on the project and select properties.
  2. General.
  3. Platform Toolset.
  4. Select Visual Studio 2013 - Windows XP (v120_xp).

Also, you can see this MSDN article, Windows XP Targeting with C++ in Visual Studio 2012 for more help.

Lion King
  • 32,851
  • 25
  • 81
  • 143
  • Thanks for posting this answer. Intel has an article, [Linking Applications using Visual Studio 2012 or later to Run on Windows XP](https://software.intel.com/en-us/articles/linking-applications-using-visual-studio-2012-to-run-on-windows-xp) describing the same procedure. For Visual Studio 2012 it looks like a Service Pack is also needed. – Richard Chambers Mar 08 '16 at 18:06