How to Fix MSVCP140.dll or VCRUNTIME140.dll Missing Errors
The Problem
You double-click a program or game and instead of opening, you get an error like "The code execution cannot proceed because MSVCP140.dll was not found" or "VCRUNTIME140.dll is missing from your computer". The app then refuses to launch at all.
These DLL files belong to the Microsoft Visual C++ Redistributable — a runtime package that thousands of Windows programs share. If it's missing, corrupted, or the wrong version, every app that depends on it fails with the same error. The good news: this is one of the easiest Windows errors to fix properly.
Important: Never download individual DLL files from random "DLL download" websites. Those files are frequently outdated, mismatched, or bundled with malware. The correct fix is always to reinstall the official Microsoft package.
Quick Checks Before You Start
- Note the exact DLL name in the error (MSVCP140.dll, VCRUNTIME140.dll, VCRUNTIME140_1.dll, MSVCP140_1.dll) — they all come from the same redistributable package, so the fix below covers all of them.
- Restart your PC once. If the error appeared right after installing something, a reboot occasionally clears a locked file.
Step 1: Reinstall the Visual C++ Redistributable
This fixes the error in the vast majority of cases.
- Go to Microsoft's official download page: search for "Visual C++ Redistributable latest supported downloads" or go directly to
learn.microsoft.com/cpp/windows/latest-supported-vc-redist. - Download both installers under "Visual Studio 2015–2022":
vc_redist.x64.exe(64-bit)vc_redist.x86.exe(32-bit)
- Run both installers, even on a 64-bit PC. Many games and older apps are 32-bit and need the x86 version.
- If the installer offers Repair instead of Install, choose Repair.
- Restart your computer and launch the app again.
Step 2: Repair the Specific App
If only one program shows the error, its own bundled runtime may be broken.
- Open Settings (
Win + I) > Apps > Installed apps. - Find the affected program, click the three-dot menu, and choose Modify or Repair if available.
- If there's no repair option, uninstall the program and reinstall it fresh — most game and app installers include the correct Visual C++ runtime and will restore it during setup.
- For Steam games: right-click the game > Properties > Installed Files > Verify integrity of game files.
Step 3: Repair Windows System Files
If DLL errors appear across multiple programs, system file corruption may be preventing the runtime from registering properly.
- Right-click the Start button and select Terminal (Admin).
- Run:
sfc /scannow - When it finishes, run:
DISM /Online /Cleanup-Image /RestoreHealth - Restart your PC, then repeat Step 1 (reinstall the redistributable).
Step 4: Check Windows Update
Some redistributable components ship through Windows Update, and a half-installed update can leave them broken.
- Open Settings > Windows Update.
- Click Check for updates and install everything pending.
- Restart and test the app again.
If the error persists after all four steps, the application itself may be damaged or incompatible with your Windows version — check the developer's site for a newer build.
App still crashes after the DLL error is gone? Follow the general guide to fix apps that crash or won't open. Seeing a different launch error code? Application error 0xc0000142 has its own fix path. If system file repair found unfixable corruption, see repair Windows 11 system files with SFC and DISM for the full recovery sequence.
Related guides
Fix Camera Not Working in Teams or Zoom on Windows 11
Camera works in the Windows Camera app but not in Teams or Zoom? Fix app permissions, the device already in use error, virtual camera conflicts, and driver problems.
How to Fix a Discord Mic Not Working in Windows 11
Nobody can hear you on Discord in Windows 11? Fix input device selection, exclusive mode, privacy permissions, and the push-to-talk and voice settings behind a dead mic.
Fix .NET Framework 3.5 Install Error in Windows 11
Windows 11 failing to install .NET Framework 3.5 with error 0x800F0950 or 0x800F081F? Install it from the ISO source, fix the Group Policy block, and repair Windows Update.
How to Fix Outlook Not Opening in Windows 11
Outlook stuck on the loading profile screen, crashing at startup, or refusing to open in Windows 11? Fix it with safe mode, add-in checks, profile repair, and Office repair.
How to Fix VCRUNTIME140.dll Missing in Windows 11
Getting "VCRUNTIME140.dll was not found" when opening an app or game? Install the right Visual C++ redistributable and repair the broken one with these steps.