“不是有效的 win32 应用程序"在 Windows XP 上 [英] "is not a valid win32 application" on windows xp

查看:40
本文介绍了“不是有效的 win32 应用程序"在 Windows XP 上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现象:

在 windows 7 平台上使用visual studio express 2015 构建一个c++ 程序.将可执行文件复制到xp系统,无法运行,提示不是有效的win32应用程序"

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"

尝试了两件事

  1. 转到配置属性"并将平台工具集"设置为visual studio 2015 - windows xp(v140_xp)"

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

在这些步骤之后,转到配置管理器"并将平台设置为Win32"(而不是 x64),仍然给我同样的问题.

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!

推荐答案

主要问题是您使用的 Windows SDK.

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

最新的 Windows SDK 具有可追溯到 Windows 7 的兼容性列表.

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

这里有两个有用的链接:

Here are two useful links:

这篇关于“不是有效的 win32 应用程序"在 Windows XP 上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆