在 Visual Studio Professional 2013 中编译了 C++ 程序,不适用于 Windows XP SP3 [英] Compiled a C++ program in Visual Studio Professional 2013, will not work with Windows XP SP3

查看:25
本文介绍了在 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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