Get it from the official source
We don't host files. These links take you straight to the genuine, safe installer on the developer's website.
You launch a game or program and instead of opening it stops with a message like 'The code execution cannot proceed because MSVCP140.dll was not found.' It is a jarring error because the app was working fine, or you just installed it, and now a single missing file is blocking everything.
MSVCP140.dll is part of the Microsoft Visual C++ Redistributable, a free runtime package that countless Windows applications rely on. When the DLL goes missing - because the redistributable was never installed, got removed, or was damaged - any program that depends on it will refuse to start. The fix is almost always to reinstall that redistributable from Microsoft.
This guide explains what the file is, why it disappears, and the correct, safe way to restore it. Crucially, you should never download a loose MSVCP140.dll from a random 'DLL download' website - those sites are a notorious source of malware, and the proper fix from Microsoft is free and far safer.
Helpful tools
Microsoft Visual C++ Redistributable
Official Microsoft package that installs the correct MSVCP140.dll
Visit official site โMicrosoft Update Catalog
Official source for runtime and system update packages
Visit official site โWindows PowerShell
Runs sfc and DISM commands to repair underlying system files
Visit official site โRevo Uninstaller
Cleanly removes conflicting Visual C++ versions before a fresh install
Visit official site โMicrosoft .NET Runtime
Another common runtime apps need alongside Visual C++
Visit official site โStep-by-step fix
-
1
Do NOT download MSVCP140.dll from a standalone 'DLL download' site - those are a common malware source.
-
2
Go to Microsoft's official Visual C++ Redistributable page and download the latest x64 (and x86 if you run 32-bit apps) installer.
-
3
Run the installer, then restart your PC and launch the program again.
-
4
If the redistributable is already installed, open Settings > Apps > Installed apps, select the Microsoft Visual C++ entry, choose Modify, and click Repair.
-
5
If the error persists, uninstall all Visual C++ Redistributable versions, restart, and install the latest version fresh.
-
6
Run sfc /scannow and then DISM /Online /Cleanup-Image /RestoreHealth in an elevated Command Prompt to repair Windows components.
-
7
Reinstall the specific program from its official source so it redeploys its required runtime.
-
8
Keep Windows updated and avoid aggressive registry cleaners that delete shared DLLs.
What MSVCP140.dll is
MSVCP140.dll is the C++ Standard Library component of the Microsoft Visual C++ 2015-2022 Redistributable. Developers build their applications against this shared runtime instead of bundling the same libraries into every program. That keeps apps smaller, but it means the redistributable must be present on your PC for those apps to run.
When you see the 'MSVCP140.dll was not found' error, it means an application needs this runtime and Windows cannot locate it. The file may never have been installed, or it may have been removed or corrupted by a botched uninstall, a cleanup tool, or a system issue.
Why you should not download the DLL directly
The internet is full of sites offering to let you 'download MSVCP140.dll' as a standalone file. Avoid them. These sites frequently bundle malware, serve outdated or wrong-architecture files, and offer no guarantee that the DLL matches what your app expects. A single mismatched or infected DLL can cause more problems than the one you are trying to solve.
The correct file always comes inside Microsoft's official Visual C++ Redistributable installer, which places the right version in the right system location. That installer is free, signed by Microsoft, and is the only source you should use.
The proper fix: reinstall the Visual C++ Redistributable
Download the latest Microsoft Visual C++ Redistributable from Microsoft's official page. Most modern PCs need the x64 version, but if you run a 32-bit application or 32-bit Windows you may also need the x86 version. Many users install both to cover all their software. Run the installer, restart your PC, and the missing DLL error usually disappears.
If you already have the redistributable installed but still get the error, repair it. Open Settings > Apps > Installed apps, find the Microsoft Visual C++ entry, choose Modify, and select Repair. This replaces any damaged or missing files, including MSVCP140.dll, with fresh copies.
If reinstalling does not work
Occasionally the runtime install will not complete or repair cleanly. In that case, uninstall every Microsoft Visual C++ Redistributable entry from Installed apps, restart, then install the latest version fresh from Microsoft. A clean reinstall clears out conflicting or partially removed versions that can keep the error alive.
It is also worth running the System File Checker (sfc /scannow) and then DISM /Online /Cleanup-Image /RestoreHealth in an elevated Command Prompt. These repair underlying Windows components that, if damaged, can prevent the redistributable from registering its DLLs correctly.
Prevent it from happening again
Keep Windows updated, since updates often refresh runtime components. Be cautious with aggressive 'PC cleaner' or registry-cleaning tools, which sometimes delete shared DLLs they wrongly judge to be unused - a common cause of this error appearing out of nowhere. And when you install games or large applications, let their bundled redistributable installers run rather than skipping them.
If a specific program keeps losing the DLL, reinstalling that program from its official source will also re-deploy the runtime it needs. Always download both the program and any runtimes from the vendor or Microsoft directly.
Frequently asked questions
Questions & answers
No questions yet โ be the first to ask!
Ask a question
Please sign in with your email to ask a question.
Comments (0)
No comments yet. Share your experience!
Leave a comment
Please sign in with your email to comment.