简体   繁体   English

Windows XP 上的“不是有效的 win32 应用程序”

[英]“is not a valid win32 application” on windows xp

Phenomenon:现象:

Build a c++ program using visual studio express 2015 on windows 7 platform.在 windows 7 平台上使用 Visual Studio Express 2015 构建一个 c++ 程序。 Copy the executable file to xp system, cannot run with the error"not a valid win32 application"将可执行文件复制到xp系统,无法运行,错误“不是有效的win32应用程序”

Have tried two things尝试了两件事

  1. go to "configuration properties" and set the "Platform Toolset" to "visual studio 2015 - windows xp(v140_xp)"转到“配置属性”并将“平台工具集”设置为“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.在这些步骤之后,转到“配置管理器”并将平台设置为“Win32”(而不是 x64),仍然给我同样的问题。

anyone knows what is the root cause of this problem?有谁知道这个问题的根本原因是什么? thank you!谢谢!

The main problem is the Windows SDK that you are using.主要问题是您使用的 Windows SDK。

Most recent Windows SDK have a compatibility list that will go far back to Windows 7.最新的 Windows SDK 具有可追溯到 Windows 7 的兼容性列表。

Here are two useful links:这里有两个有用的链接:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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