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


基础教程推荐
- 使用从字符串中提取的参数调用函数 2022-01-01
- 为 C/C++ 中的项目的 makefile 生成依赖项 2022-01-01
- 在 C++ 中循环遍历所有 Lua 全局变量 2021-01-01
- 从 std::cin 读取密码 2021-01-01
- 如何在不破坏 vtbl 的情况下做相当于 memset(this, ...) 的操作? 2022-01-01
- 为什么语句不能出现在命名空间范围内? 2021-01-01
- 管理共享内存应该分配多少内存?(助推) 2022-12-07
- 如何“在 Finder 中显示"或“在资源管理器中显 2021-01-01
- Windows Media Foundation 录制音频 2021-01-01
- 如何使图像调整大小以在 Qt 中缩放? 2021-01-01