Are Visual C ++ dynamic runtime libraries part of the current Windows operating system?

Are Visual C ++ Dynamic Executable Libraries (more specifically, 2008) currently part of Windows? I noticed that at least in Windows 8 you no longer need to send them with your application or the user can install the redistributable package from Microsoft.

It's true? If so, for which versions of Windows and for which versions of Visual C ++ does this apply?

+6
source share
2 answers

No, they were never part of the Windows distribution. Deploying them yourself is a difficult requirement.

Of course, it may seem that they are. Starting with msvcrt.dll in the system32 directory, it has the same name as the C ++ runtime script in Visual Studio versions prior to VS2002 (VS6 and earlier). This, however, is a private copy of a CRT that is used by Windows executables. And it is protected by the file system protection function in Windows, preventing the destruction of old installers by the operating system.

This, of course, often works by accident. There are many programs that need Microsoft CRT, so it is unlikely that the user ran the installer before installing the DLL. It is clear that you cannot depend on this general accident.

Similarly, for Windows 8, the pre-installed Microsoft.VCLibs.110 package corresponds to the package that is needed for a Store application written in C ++. But for the same reason as above, the Microsoft Store programs were also built on VS2012, just like yours. What will happen in the upcoming VS2013 is now a little dirty, we will soon find out.

+4
source

In my opinion, the answer will be: Yes and No.

  • Yes Later Windows usually comes with a pre-installed version of VC (along with later versions of the .NET Framework). This is because Microsoft uses the latest / new Visual Studio before releasing VS to the public (or even to MSDN subscribers). If this is not the case, whenever you install any application (an outdated application or some downloaded application), the installation will in any case install the required VC ++ runtime. Another way is automatic updates.
  • No. If none of the above rules apply. Or when the VC runtime comes with a new service pack or patch. You may have developed an application with a newer patch / SP that needs to be installed (such as Side-by-Side).
0
source

All Articles