Home / Guides / DLL file errors

DLL file errors on Windows

"The program can't start because MSVCP140.dll was not found" - or VCRUNTIME140.dll, or d3dx9_43.dll. A DLL is a shared library many programs use at once; when one goes missing or gets corrupted, every program that needs it fails. The good news: the safe fix is almost never "download the DLL".

Fix it automatically

Outbyte Driver Updater identifies your installed hardware automatically and updates outdated or broken drivers from official sources, with a backup before every change. Useful when you would rather not run the steps below by hand - the scan and diagnosis are free.

Download Driver Updater Downloads Outbyte Driver Updater for Windows 11, 10, 8 and 7. Free 2-day trial, no credit card required.

First, the warning: never download individual DLL files from "DLL download" websites. Those files are unverified, often outdated for your system and a well-known malware channel. Every fix below gets the DLL from a legitimate source instead.

The fixes, in order

1. Reinstall the program that shows the error

  1. Uninstall the affected program via Settings, then Apps.
  2. Reinstall it from the developer's official website - the installer carries the DLLs the program needs and puts them back correctly.

2. Repair the Visual C++ Redistributables (fixes MSVCP*, VCRUNTIME*)

  1. Most "MSVCP140.dll" and "VCRUNTIME140.dll" errors mean the Microsoft Visual C++ Redistributable is missing or broken.
  2. Download the latest redistributable from Microsoft's official site (search "Visual C++ Redistributable latest supported downloads" - the page is learn.microsoft.com).
  3. Install both the x64 and x86 versions, then restart the PC.

3. For game errors (d3dx9_*, xinput*) - repair DirectX through the game platform

  1. In Steam: right-click the game, Properties, Installed Files, then "Verify integrity of game files".
  2. Game platforms reinstall the DirectX components their games need; standalone games often carry a redist folder inside their installation directory.

4. Repair Windows system DLLs

  1. Right-click Start, open Terminal (Admin), and run sfc /scannow - it restores protected system DLLs from Windows' own store.
  2. If needed, follow with DISM /Online /Cleanup-Image /RestoreHealth and run SFC again.

5. Check for malware

  1. Run a full scan in Windows Security - malware sometimes replaces or corrupts shared DLLs.

Frequently asked questions

Why not just download the missing DLL?

Because a DLL from a random site may be the wrong version for your Windows build, may conflict with other programs, and may carry malware. The legitimate sources - the program's installer, Microsoft's redistributables, Windows' own repair tools - give you the right file safely.

The same DLL error appears in several programs. What does that mean?

A shared runtime is broken - almost always the Visual C++ Redistributable. Fix 2 above repairs it for every affected program at once.

The error appeared after a Windows update. What now?

Run sfc /scannow first, and if the error remains, uninstall the most recent update (Settings, Windows Update, Update history, Uninstall updates) to confirm the update caused it. See the Windows errors guide for the full sequence.