In this guide
  1. What does “MSVCP140.dll was not found” mean?
  2. Quick fixes
    1. 1. Install the Visual C++ v14 Redistributable, x64 and x86
    2. 2. Work out whether the program is 32-bit or 64-bit
    3. 3. Repair the existing Redistributable
  3. Why you shouldn’t download MSVCP140.dll from a DLL site
  4. More fixes
    1. 4. Reinstall the program (or verify game files)
    2. 5. If the Redistributable won’t install
    3. 6. Check your antivirus quarantine
    4. 7. Repair Windows system files
    5. 8. Other “missing DLL” errors in the same program
  5. If nothing works
  6. FAQ
    1. How do I fix MSVCP140.dll is missing?
    2. Which Visual C++ version has MSVCP140.dll?
    3. I installed Visual C++ but MSVCP140.dll is still missing. Why?
    4. Where should MSVCP140.dll be?
    5. Is MSVCP140.dll safe?

“MSVCP140.dll was not found” means a program needs Microsoft’s C++ standard library and Windows can’t load it. Almost always, the Microsoft Visual C++ Redistributable that provides it is missing, damaged, or installed only for the wrong type of app (32-bit vs 64-bit). Install the latest supported Visual C++ v14 Redistributable from Microsoft, both x64 and x86, restart, and the program should open.

You don’t need to download MSVCP140.dll on its own, and you shouldn’t. Below is the safe fix, how to tell which version your program needs, and what to do if the installer itself fails.

What does “MSVCP140.dll was not found” mean?

Depending on your Windows version and the program, you’ll see one of these messages:

  • “The code execution cannot proceed because MSVCP140.dll was not found. Reinstalling the program may fix this problem.”
  • “The program can’t start because MSVCP140.dll is missing from your computer. Try reinstalling the program to fix this problem.”
  • The same text naming MSVCP140_1.dll or MSVCP140_2.dll.

Windows system error saying the code execution cannot proceed because MSVCP140.dll was not found

MSVCP140.dll is the C++ standard library (“MSVCP” = Microsoft Visual C++, “140” = version 14). It works together with VCRUNTIME140.dll, and both are installed by the Visual C++ v14 Redistributable, which covers programs built with Visual Studio 2015 and every version since. MSVCP140_1.dll and MSVCP140_2.dll are extra pieces of the same library added in later updates, so an old copy of the runtime can have MSVCP140.dll but lack them.

It usually appears:

  • On a new laptop or after reinstalling Windows.
  • After installing a program whose setup skipped its “prerequisites” step, or a portable app that never had a setup.
  • After a “PC cleaner” or someone tidying Installed apps removed Microsoft Visual C++ entries.
  • When only the x64 runtime is installed but the program is 32-bit, or the reverse.

Quick fixes

1. Install the Visual C++ v14 Redistributable, x64 and x86

  1. Open Microsoft’s Latest supported Visual C++ Redistributable downloads page.
  2. Under Latest supported redistributable version, download X64 (vc_redist.x64.exe) and X86 (vc_redist.x86.exe). On a Windows on Arm laptop, the X64 package includes the ARM64 files as well.
  3. Run each one, tick I agree to the license terms and conditions, select Install, and approve the admin prompt.
  4. Restart your PC and open the program again.

Microsoft Learn download table with the X64 and X86 Visual C++ Redistributable files highlighted

On 32-bit Windows, install only X86. Check yours in Settings → System → About → System type.

Microsoft states that the Redistributable installed must be the same as or newer than the one the program was built with, and recommends the latest. That’s why updating an old 2015 or 2017 copy fixes errors about MSVCP140_1.dll or MSVCP140_2.dll. Support for the 2015 version ended in October 2025; the current package replaces it in place.

2. Work out whether the program is 32-bit or 64-bit

If you’d rather know why the error happened, check where the program is installed:

  • C:\Program Files (x86)\... → a 32-bit program: it needs the x86 Redistributable.
  • C:\Program Files\... on 64-bit Windows → usually 64-bit: it needs x64.

Table showing that programs in Program Files x86 need the x86 runtime and programs in Program Files need x64

The 64-bit runtime can’t serve a 32-bit program, which is the most common reason people say “I installed Visual C++ and it still says MSVCP140.dll is missing”. Installing both avoids the guesswork.

3. Repair the existing Redistributable

If the installer says a newer version is already installed, or setup ends with error 0x80070666, repair what’s there:

  1. Go to Settings → Apps → Installed apps (Windows 10: Apps & features) and search Visual C++.
  2. Next to Microsoft Visual C++ 2015-2022 Redistributable (x64) (the year range in the name can differ), select the three dots, then Modify.
  3. Select Repair. Do the same for the (x86) entry.
  4. Restart.

Visual C++ Redistributable setup window showing Repair, Uninstall and Close buttons, with Repair highlighted

Why you shouldn’t download MSVCP140.dll from a DLL site

“Download msvcp140.dll” sites rank well in search, and some even sell “repair tools”. Skip them:

  • Safety: a DLL is code that runs inside your program with your permissions. You can’t tell whether a file from an unknown site has been changed, and malware is regularly spread this way.
  • Compatibility: MSVCP140.dll must match VCRUNTIME140.dll and the other runtime files. A loose copy of a different version can cause crashes, new “entry point not found” errors or error 0xc000007b.
  • Updates: the official Redistributable gets Microsoft’s security and reliability fixes; a copied file never does.

Microsoft’s guidance is blunt: never install a Visual C++ Redistributable that wasn’t downloaded from a Microsoft site or that Microsoft didn’t sign.

More fixes

4. Reinstall the program (or verify game files)

Many installers carry the runtime version they were tested with. Uninstall the program, restart, then install it again from its official website or store. For Steam games, right-click the game in Library → Properties → Installed Files → Verify integrity of game files, then check the game folder for a _CommonRedist\vcredist folder and run the installers in it.

5. If the Redistributable won’t install

Microsoft’s troubleshooting guide lists the usual causes and codes:

Code Meaning What to try
1603 General install failure Restart, then try the steps below
5 Access denied Run as administrator; pause antivirus briefly
32 File in use Close all programs or restart first
1620 / 1714 Damaged installer cache or old version can’t be removed Repair or uninstall the old entry, then install again

In practice:

  1. Right-click the vc_redist file and select Run as administrator.
  2. Install pending updates in Settings → Windows Update and restart. If updates are stuck, see how to fix Windows Update stuck.
  3. Temporarily turn off your antivirus’s real-time protection, install, and turn it back on immediately.

6. Check your antivirus quarantine

If a program that used to work suddenly shows the error, open Windows Security → Virus & threat protection → Protection history (or your antivirus’s quarantine) to see if a file was removed. Only restore it if the program is from a trusted, official source; otherwise reinstall the program from its official site.

7. Repair Windows system files

If several programs show different runtime errors, or the Redistributable installs but the problem returns, run these in Terminal (Admin):

DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow

Restart afterwards. Our SFC vs DISM guide explains the results.

8. Other “missing DLL” errors in the same program

Once MSVCP140.dll is sorted, an older game might complain about another file. VCRUNTIME140.dll or VCRUNTIME140_1.dll uses the same fix as this one. Errors about XINPUT1_3.dll, D3DX9 or X3DAudio1_7.dll need Microsoft’s DirectX runtime instead: see XINPUT1_3.dll is missing.

If nothing works

Gather the exact error text, the program name and version, whether it’s in Program Files or Program Files (x86), your Windows version, and a list of the Visual C++ entries in Installed apps. Then:

  • Contact the program’s developer. Microsoft’s download page itself says that when fixing an app, the app vendor should tell you which runtime it needs.
  • If the Redistributable installer fails, follow Microsoft’s Visual C++ Redistributable troubleshooting guide to collect its log files before asking for help.

Be wary of anyone offering to fix the error for a fee over social media or a “support” phone number from an ad. Microsoft doesn’t charge to download the runtime, and real support never asks for gift-card payments or your passwords.

FAQ

How do I fix MSVCP140.dll is missing?

Install both vc_redist.x64.exe and vc_redist.x86.exe from Microsoft’s “Latest supported Visual C++ Redistributable downloads” page, then restart. If they’re already installed, repair them from Installed apps → Modify → Repair.

Which Visual C++ version has MSVCP140.dll?

The Visual C++ v14 Redistributable, covering Visual Studio 2015 through the current version. One up-to-date package serves programs built with any of them.

I installed Visual C++ but MSVCP140.dll is still missing. Why?

Usually you installed only x64 and the program is 32-bit (or the reverse). Install the other one too. If both are there, repair them, then reinstall the program.

Where should MSVCP140.dll be?

The installer puts the 64-bit file in C:\Windows\System32 and the 32-bit file in C:\Windows\SysWOW64. You don’t need to copy it anywhere yourself.

Is MSVCP140.dll safe?

The real file from Microsoft is safe and needed by many programs. Copies from DLL download sites aren’t verified, so avoid them.

Technology Sage

The Technology Sage desk: guides, explainers and contributed articles since 2014.