Compiled a C++ program in Visual Studio Professional 2013, will not work with Windows XP SP3(在 Visual Studio Professional 2013 中编译了 C++ 程序,不适用于 Windows XP SP3)
问题描述
我通常讨厌提问,但这个问题让我很难过.
I usually hate asking questions but this one has me stumped.
我正在 Visual Studio Professional 2013 中使用 C++ 和 Allegro5 创建一个小游戏.我使用了 Visual Studio 2013 – Windows XP (v120_xp) 平台工具集,并确保目标计算机上安装了 Visual C++ 2013 可再发行组件.
I am creating a small game using C++ and Allegro5 in Visual Studio Professional 2013. I have used the Visual Studio 2013 – Windows XP (v120_xp) platform toolset, and made sure the Visual C++ 2013 redistributable was installed on the target machine.
我正在使用 Windows 8.1 进行开发,目标机器运行的是 Windows XP SP2.
I am developing using Windows 8.1, the target machine is running Windows XP SP2.
每当我尝试运行该程序时,我都会收到一条消息,指出 .exe 不是有效的 Win32 应用程序.
Whenever I attempt to run the program I receive a message stating .exe is not a valid Win32 application.
即使我没有使用任何与 .NET 相关的东西,我也确保它也安装在目标机器上.
Even though I am not using anything related to .NET I have made sure that was installed on the target machine as well.
我还确保程序本身是一个 32 位应用程序.
I have also made sure that the program itself is a 32 bit application.
我真的不知道接下来要尝试什么.我已经搜索了过去几个小时并确保安装了任何必要的东西.我在这方面还很陌生,所以很可能我忽略了一些简单的东西,但我不能像我这样的人想到什么.
I am really not sure what to try next. I have searched for the past few hours and made sure that anything necessary was installed. I am still rather new at this so it's quite possible I overlooked something simple, but I can't for the likes of me think of what.
推荐答案
您必须从属性(预览)设置平台工具集配置
you have to set the Platform Toolset configuration from properties (preview)
将其值设置为 v120_xp,它应该可以在 windows xp 上运行.
Set its value to v120_xp and it should work on windows xp.
阅读帖子http://supportxpdotcom.wordpress.com/2013/07/16/xp-targeting-support-in-the-visual-studio-2013-preview/
看评论http://blogs.msdn.com/b/vcblog/archive/2013/06/26/visual-studio-2013-preview-now-available.aspx
这篇关于在 Visual Studio Professional 2013 中编译了 C++ 程序,不适用于 Windows XP SP3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Visual Studio Professional 2013 中编译了 C++ 程序,不适用于 Windows XP SP3
- C++ 协变模板 2021-01-01
- 使用/clr 时出现 LNK2022 错误 2022-01-01
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- 静态初始化顺序失败 2022-01-01
- 近似搜索的工作原理 2021-01-01
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- STL 中有 dereference_iterator 吗? 2022-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07
- 从python回调到c++的选项 2022-11-16