You double-click a game you own and get `The code execution cannot proceed because MSVCP140.dll was not found. Reinstalling the program may fix this problem.` Settings already lists Visual C++ 2015-2022, you reinstall it, and the dialog returns unchanged. Windows keeps two copies of that DLL and never says which one is missing. Check your system information first, then read the folders.
Quick steps
- Note the exact file name in the dialog
- Check the app's Platform column in Task Manager
- Look for the DLL in SysWOW64 and in System32
- Install vc_redist.x86.exe as well as vc_redist.x64.exe
- Repair the x64 package instead of reinstalling it
- Run the redist folder inside the game directory
- Never take the DLL from a download site
Things you'll need
- An administrator account
- vc_redist.x86.exe and vc_redist.x64.exe from Microsoft's own download page
- About 100 MB of free space on C:
- Two reboots you are allowed to perform
Step-by-step
Method 1 of 3: Work Out Which Copy Is Missing
Download image
Step 1: Read the DLL name in the dialog
Write the exact file name down. MSVCP140.dll is the C++ standard library; VCRUNTIME140.dll is the small loader stub beside it. Both ship in the same package, but one never covers for the other, and the fix differs.
Download image
Step 2: Check the app's Platform column
Start the app, open Task Manager → Details, and find its process. The Platform column reads 32-bit or 64-bit. A 32-bit process looks in SysWOW64 only, so an x64-only install leaves it hunting a file nobody placed.
Download image
Step 3: Look for the 32-bit copy in SysWOW64
Open C:\Windows\SysWOW64 and look for msvcp140.dll. On 64-bit Windows this folder holds 32-bit binaries. The folder name and the bitness run opposite to intuition, and that reversal is behind most of the bad advice online.
Download image
Step 4: Look for the 64-bit copy in System32
Open C:\Windows\System32 and find the same file. Here the binaries are 64-bit. If one folder has the file and the other does not, you already know which package is missing and can skip the rest of this method.
Download image
Step 5: Compare the two file versions
Right-click each copy → Properties → Details and read the File version field. One build reporting 14.0.24215 next to another reporting 14.38 means the 32-bit package is years stale and cannot serve a newer program.
Download image
Step 6: Check which package is really listed
Open Settings → Apps → Installed apps and search for Visual C++. You will see separate x86 and x64 entries with nearly identical names. If only the x64 entry exists, the dialog is accurate and you want method two.
Source: Microsoft Learn — Running 32-bit Applications · See also Microsoft Learn — Dynamic-Link Libraries · Read next: Remove Malware From a PC
Download image
Step 7: Rule out a broken side-by-side manifest
Open Event Viewer → Windows Logs → Application and look for SideBySide entries at the moment of the failure. A manifest error means the file is present but its registration is damaged, which is a different repair job than a missing file.
Method 2 of 3: Install Both Architectures in Order
Download image
Step 8: Download both installers from Microsoft
Get vc_redist.x86.exe and vc_redist.x64.exe from Microsoft's own Visual C++ download page. Skip mirrors, game repacks, and any page offering a single file. Each installer is roughly 25 MB and carries a valid signature.
Download image
Step 9: Install the x86 package first
Run vc_redist.x86.exe and choose Install. This is the package that puts a 32-bit msvcp140.dll into SysWOW64. Nothing on screen says 32-bit, which is exactly why the step gets skipped by nearly everyone.
Download image
Step 10: Repair the x64 package, do not reinstall
Run vc_redist.x64.exe and pick Repair when the choice appears. Repair rewrites files and registry keys without disturbing other software. If this option is greyed out, the package is not registered at all, so choose Install instead.
Download image
Step 11: Reboot before launching the game
Restart Windows, then start the game from its own shortcut rather than a launcher overlay. The loader resolves DLL paths when a process starts, so a running launcher can keep the old answer. Same dialog means the copy is wrong, not missing.
Download image
Step 12: Run the redist folder inside the game
Open the game's install folder and look for Redist, _CommonRedist, or vcredist. Run whatever installer sits inside. Publishers pin the exact runtime they built against, and that build is often newer than the copy installed on your system.
Source: Microsoft Learn — Dynamic-Link Libraries · See also Microsoft Learn — Running 32-bit Applications · Read next: Remove Malware From a PC
Download image
Step 13: Repair the protected system copy
Open Command Prompt as administrator and run sfc /scannow. It takes 5 to 15 minutes. This replaces a corrupted copy in System32 that the redistributable installer skips, because setup trusts any file whose version is already current.
Method 3 of 3: Find What the Loader Really Wants
Download image
Step 14: Trace the real import with Dependencies
Open the game's exe in the free Dependencies tool and expand the tree. It lists every DLL the loader asks for and marks the failures in red. One minute of this beats an hour of reinstalling packages that were never the problem.
Download image
Step 15: Hunt for a wrong-version copy on disk
Open C:\Windows\System32, sort by Date modified, and look at msvcp140.dll. A file dropped there by a repack or a forum zip will carry a recent date and still be wrong, because its version does not match what the app requests.
Download image
Step 16: Check the copy sitting beside the exe
If the game folder holds its own msvcp140.dll, the loader uses that one before anything in System32. Rename it to msvcp140.old and relaunch. If the dialog clears, the bundled copy was older than the installed package.
Download image
Step 17: Uninstall both, then install in order
Remove every Visual C++ 2015-2022 entry in Installed apps, reboot, then install x86 and x64 again in that order. Do this only after comparing versions, because other programs will pick up whatever you leave behind.
Download image
Step 18: Test under a fresh user account
Create a local account and run the game there. A new profile carries no per-user compatibility shims and no DLL redirection. If the game starts for that account, the fault is a setting in your profile, not the runtime.
Source: Microsoft Learn — Running 32-bit Applications · See also Microsoft Learn — Dynamic-Link Libraries · Read next: Remove Malware From a PC
Download image
Step 19: Stop when the missing file is not Microsoft's
If both packages are installed, the versions match, and Dependencies names a DLL the vendor never shipped, stop. Send that screenshot to the publisher. A clean Windows install cannot supply a file nobody makes, and you will lose a day finding out.
Tips
- The x86 package is not the legacy one. A 32-bit game on 64-bit Windows needs it, no matter how new the PC is.
- Version numbers matter more than package names. A 2015 build will not satisfy a loader asking for 14.29 or later.
- Look inside the game folder for Redist or _CommonRedist before you download anything. The answer is often already there.
- A file named msvcp140_app.dll is the Store variant of the same library. It is not a substitute for the desktop one.
Warnings
- Never take msvcp140.dll from a DLL download site. Those files are unsigned, often patched, and occasionally wrapped in an installer.
- Do not paste a 64-bit DLL into SysWOW64 or the reverse. You will break every program that already depends on the good copy.
- Do not uninstall the Visual C++ packages to clean up. Other software will stop launching on the next boot.
- System Restore cannot restore a DLL that was never installed. Pick a restore point from before the game was installed only if something else broke.
Frequently asked questions
Why does the error appear when the redistributable is clearly installed?
Because there are two of them. The 64-bit package never places a 32-bit DLL, and most games load the 32-bit one.
Is msvcp140.dll the same file as vcruntime140.dll?
No. They are separate files from the same package. Having one does not satisfy a request for the other, and swapping them breaks the app.
Does the 2015 package cover a program built with 2022?
No. 2015 through 2022 share one redistributable line, but the 2015 build alone is too old for a binary compiled later.
Can I just drop the DLL next to the game exe?
It sometimes works for a test and it is not a fix. You also need the matching vcruntime and manifest, so install the package.
References
- Microsoft Learn — Latest supported Visual C++ Redistributable. https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
- Microsoft Learn — Dynamic-Link Library Search Order. https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order
- Microsoft Learn — C++ build documentation. https://learn.microsoft.com/en-us/cpp/windows/
- Microsoft Support — Windows help and learning. https://support.microsoft.com/en-us/windows
Every guide is reviewed against its sources. See our editorial policy.
Reader comments
0 so farFinished this guide? Tell other readers what worked, what didn't, and what you would change.