简体   繁体   中英

“is not a valid win32 application” on windows xp

Phenomenon:

Build a c++ program using visual studio express 2015 on windows 7 platform. Copy the executable file to xp system, cannot run with the error"not a valid win32 application"

Have tried two things

  1. go to "configuration properties" and set the "Platform Toolset" to "visual studio 2015 - windows xp(v140_xp)"

  2. go to "configuration Manager" and set the Platform to "Win32" (instead of x64) after these steps, still gives me same problem.

anyone knows what is the root cause of this problem? thank you!

The main problem is the Windows SDK that you are using.

Most recent Windows SDK have a compatibility list that will go far back to Windows 7.

Here are two useful links:

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