简体   繁体   中英

Targeting Windows XP in MFC application using Visual Studio 2013/2015 onward

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 ?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM