C ++二进制文件不适用于Windows XP [英] C++ binary doesn't work on windows XP

查看:91
本文介绍了C ++二进制文件不适用于Windows XP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常基本的C ++程序,是在Windows 7的VS 11 Beta中编译的.

I have a very basic program in C++ compiled in VS 11 Beta on windows 7.

除运行时库"外,所有项目设置均为默认设置.我将多线程DLL(/MD)更改为多线程(/MT).据我所知,这将静态链接运行时库.

All project settings are default except Runtime Library. I changed Multi-threaded DLL (/MD) to Multi-threaded (/MT). This staticly links the runtime library as far as I know.

尝试在安装了VS 11 Beta的另一台Windows 7计算机上运行该exe即可.

Trying to run this exe on another windows 7 machine with VS 11 Beta installed works fine.

尝试在未安装VS的windowx XP计算机上运行它会导致弹出错误提示.

Trying to run it on a windowx XP machine with no VS installed causes an error popup saying.

" * *.exe不是有效的Win32应用程序"

"**.exe is not a valid Win32 application"

要在Win7上使用VS 11 Beta编译的XP上运行二进制文件,是否需要更改某些设置?

Is there some settings that need to be changed to make a binary work on XP that was compiled with VS 11 Beta on Win7?

推荐答案

VS 11不再支持Windows XP.这是微软设计的.

VS 11 no longer supports Windows XP. This is by design from Microsoft.

http://connect.microsoft.com/VisualStudio/feedback/details/690617

此行为是设计使然的,在MFC和CRT for Visual Studio 11 Beta中.支持的最低操作系统为Windows Server 2008 SP2和Windows Vista. Beta版(设计时或运行时)不支持Windows XP.

This behavior is by design in MFC and CRT for Visual Studio 11 Beta. The minimum supported operating systems are Windows Server 2008 SP2 and Windows Vista. Windows XP is not a supported operating system for the Beta release (design-time or run-time).

进一步阅读讨论内容,可能会在发行版本中支持Windows XP.我不会相信它.

Reading further into the discussion, there's a possibility that Windows XP may be supported in the release version. I wouldn't bank on it though.

微软已批准: 查看全文

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