Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are Visual C++ dynamic runtime libraries part of the Windows OS nowadays?

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.

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

like image 748
Daniel Hedberg Avatar asked Apr 03 '13 15:04

Daniel Hedberg


People also ask

Do I need all of the Microsoft Visual C ++?

Microsoft Visual C++ Redistributable is a set of runtime library files used by many programs installed in the PC, even a part of Windows. Uninstalling them will definitely stop all those programs that depend on them from working. In such event, you will need to install the required version again.

What is Microsoft Visual C used for?

Microsoft Visual C++ is a integrated development environment (IDE) used to create Windows applications in the C, C++, and C++/CLI programming languages.

What are C runtime libraries?

The C runtime library is a collection of subroutines that are needed to build a program in C. The subroutines can basically be put into 2 categories: C standard library. Compiler-specific auxiliary functions.

How do I turn on Microsoft Visual C++ runtime library?

a. Open Programs and Features. b. From the list, find Microsoft Visual C++ Redistributable Package and click on it.


1 Answers

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

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.

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.

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.

like image 66
Hans Passant Avatar answered Nov 15 '22 14:11

Hans Passant