Visual C ++动态运行时库是Windows操作系统的一部分吗? [英] Are Visual C++ dynamic runtime libraries part of the Windows OS nowadays?

查看:130
本文介绍了Visual C ++动态运行时库是Windows操作系统的一部分吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual C ++(更具体地说是2008)的动态运行时库是Windows操作系统的一部分吗?我注意到,至少在Windows 8上,您不再需要将这些与您的应用程序或用户安装从Microsoft的可再发行组件包。

Are the dynamic runtime libraries for Visual C++ (more specifically 2008) part of the Windows OS nowadays? I noticed that at least on Windows 8 you no longer need to ship these with your application or have the user install the redistributable package from Microsoft.

这是真的吗?如果是这样,对于什么Windows版本和Visual C ++的什么版本适用于?

Is this true? If so, for what Windows versions and for what versions of Visual C++ does this apply to?

推荐答案

是Windows发行版的一部分。自己部署它们是一个严格的要求。

No, they've never been part of the Windows distribution. Deploying them yourself is a hard requirement.

这当然可以 他们是。从system32目录中的msvcrt.dll开始,它与VS2002(VS6和更早版本)之前的Visual Studio版本中的C ++运行时DLL具有相同的名称。然而,它是由Windows可执行文件使用的CRT的私有副本。并受Windows中文件系统保护功能的保护,防止旧的安装程序破坏操作系统。

It certainly may seem that they are. Starting with msvcrt.dll in the system32 directory, it has the same name as the C++ runtime dll in Visual Studio versions prior to VS2002 (VS6 and earlier). It is however a private copy of the CRT that is used by Windows executables. And protected by the File System Protection feature in Windows, preventing old installers from destroying the operating system.

这通常意外工作。有许多程序需要Microsoft CRT,因此用户在安装DLL之前不必运行安装程序。

It certainly often works by accident. There are many programs that need the Microsoft CRT so it isn't unlikely that the user has run an installer before that got the DLLs installed. Clearly you cannot depend on that common accident.

同样,对于Windows 8,预安装的Microsoft.VCLibs.110软件包与您在商店应用程序中所需的软件包相匹配C ++。但是这也是因为上面的原因,Microsoft Store程序也是用VS2012构建的,就像你的。在即将到来的VS2013会发生什么是有点泥泞,我们很快就会知道。

Similarly for Windows 8, the pre-installed Microsoft.VCLibs.110 package matches the package you need for a Store app written in C++. But that's for the same reason as above, Microsoft Store programs were also built with VS2012, just like yours. What's going to happen in the upcoming VS2013 is a bit muddy right now, we'll know soon.

这篇关于Visual C ++动态运行时库是Windows操作系统的一部分吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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