You download a game, an editor, or a dev tool, double-click it, and a popup says "The code execution cannot proceed because MSVCP140.dll was not found" or, more directly, "The application was unable to start correctly (0xc000007b)". Almost all of these errors come down to a missing runtime library or a bitness mismatch. Your system is not broken. Walk through the steps below and you can fix most of them.

1. Read the symptom first

Message you seeWhat it usually means
MSVCP140.dll / VCRUNTIME140.dll / msvcr120.dll was not foundMissing Visual C++ runtime
The application was unable to start correctly (0xc000007b)Usually a 32-bit vs 64-bit DLL mismatch
The application has failed to start because its side-by-side configuration is incorrect (0xc000142)Wrong or missing VC++ runtime version
api-ms-win-crt-runtime / api-ms-win-crt-*.dll was not foundMissing VC++ 2015-2022 runtime
d3dx9_43.dll / XINPUT1_3.dll was not foundMissing DirectX runtime
msvcp140_1.dll / vcruntime140_1.dll was not foundMissing a newer VC++ 2015-2022 subcomponent

2. The most common cause: a missing Visual C++ runtime

Different software is compiled with different years of VC++ (2005, 2008, 2010, 2012, 2013, 2015-2022), and they do not replace one another. The easiest fix is to install a "Visual C++ Redistributable All-in-One (AIO)" bundle.

  • Download the VC++ bundle from the official Microsoft site and install both the x86 and x64 versions.
  • You can also install just the latest build: winget install Microsoft.VCRedist.2015+.x64 for 64-bit, plus the x86 build if you run 32-bit programs.

The big trap. On a 64-bit system, a 32-bit (x86) program still needs the 32-bit runtime. A lot of "my system is 64-bit, why am I still missing it" cases come from forgetting to install the x86 build.

3. The 0xc000007b special: 32-bit vs 64-bit mismatch

0xc000007b almost always means a 32-bit program loaded a 64-bit DLL, or the other way around. The order to fix it:

  1. Install the runtime for the correct bitness (see above, install both x86 and x64).
  2. Reinstall the problematic software and pick the right build; do not install the 64-bit package onto an old program that only wants 32-bit.
  3. Do not trust a "DLL fix wizard" that force-copies a single DLL into System32; the mismatch only gets messier.

4. Games or old software: add DirectX and XInput

  • Missing d3dx9_xx.dll, d3dx10_*.dll, or XINPUT1_3.dll? Install the DirectX End-User Runtime (June 2010); search Microsoft for dxwebsetup.
  • You can also try winget install Microsoft.DirectX where the Store allows it.
  • If it is still missing after that, the game's own Redist folder usually has it; run the vcredist or dxsetup inside it.

5. Missing .NET Framework

  • If the software needs .NET 3.5: Settings > Apps > Optional features > More Windows features, tick .NET Framework 3.5 (includes 2.0 and 3.0), and install while online. If you get 0x800F081F, look into the offline install approach.
  • If it needs .NET 4.x, download the matching offline installer from Microsoft.

6. api-ms-win-crt errors and corrupted system files

If the runtime is installed but you still see api-ms-win-crt-* or system components misbehave, run a system repair:

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

Both commands need to run as administrator. For what the blue screen codes mean, see Windows Blue Screen Error Codes Explained. For chkdsk and USB or disk errors, see USB Flash Drive or External Hard Drive Not Recognized.

7. Three things you should never do

  • Never download a single DLL from a "DLL download site" and overwrite System32. Those sites often bundle malware.
  • Never use a "one-click DLL repair" scam tool; it will hijack your homepage and install junk. To tighten system promotions and privacy, see Turn Off Windows 11 Ads, Recommendations, and Telemetry.
  • Never blindly reinstall Windows. The root cause is a missing runtime, so a reinstall leaves you in the same place.

8. Quick lookup table

Error you seeTry firstThen try
MSVCP140 / VCRUNTIME140VC++ bundle (x86 + x64)sfc /scannow
0xc000007bRuntime for the correct bitnessReinstall the software with the right build
XINPUT1_3 / d3dx9DirectX End-User RuntimeRun the game's own Redist
api-ms-win-crtVC++ 2015-2022DISM repair
.NET relatedEnable or install the .NET versionOffline installer

Wrap-up

About 90% of these popups are a missing Visual C++ runtime or a bitness mismatch; only a few are corrupted system files. Install the official VC++ bundle (both x86 and x64) plus the DirectX runtime first, then try sfc or DISM. Never pull files from a DLL download site.