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

查看:59
本文介绍了在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.

推荐答案

您必须从属性(预览)中设置Platform Toolset配置

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天全站免登陆