Advertisement

Guides

How to Fix Missing DLL Errors When Launching PC Games

A game refuses to start with a message about a missing DLL file — here is what that file is, which official package installs it, and what never to do.

By TheGameExtras Team Updated 5 min read
How to Fix Missing DLL Errors When Launching PC Games

Missing DLL errors almost always mean a Microsoft runtime library is not installed, not that a single file vanished. Install the right official redistributable package, verify the game files, and never download DLLs from random websites.

Verified

Nothing kills the mood quite like installing a game, clicking Play, and getting a small error window instead: 'The code execution cannot proceed because MSVCP140.dll was not found'. The game is installed, your PC meets the requirements, and yet it will not start at all. The message sounds like one file has gone missing, but that is rarely the whole story.

A DLL, or Dynamic Link Library, is a shared file many programs use for common jobs. When a game says a DLL is missing, it usually means the package that should install that file — most often a Microsoft Visual C++ Redistributable or DirectX — was never installed, was removed, or was damaged. Fix the package, not the single file, and the error usually goes away for every game that needs it.

1. What a missing DLL error actually means

Games do not normally ship every library they need. They rely on runtimes installed on your PC by Steam, by the game's own installer, or by Windows itself. When that runtime is absent, Windows cannot load the game at all, so you get an error before the game window even appears — different from a crash during gameplay, covered in our guide to fixing PC games that crash on launch.

Read the exact file name in the error message and write it down — it tells you which package to install. MSVCP140.dll and VCRUNTIME140.dll point to the Visual C++ Redistributables, XINPUT1_3.dll and D3DX9_43.dll point to DirectX, and a name starting with api-ms-win-crt points to the Universal CRT from Windows Update. The table near the end maps the most common names to their packages.

2. Do not download DLL files from random websites

This is the one rule to follow even if you ignore everything else: do not download a single DLL file from a DLL download site and drop it into your game or Windows folder. Those files can be the wrong version, the wrong architecture (32-bit versus 64-bit), or outright malware dressed up as a fix. Even when the file is genuine, a lone DLL often depends on other files from the same package, so the game still fails — now with a different error.

The correct fix is always the official installer for the whole package, from Microsoft or from the game's own redistributable folder. It takes a few minutes longer, and it actually works.

Visual C++ Redistributables installer

3. Install the Visual C++ Redistributables (all of them)

Most missing DLL errors are Visual C++ errors, and the fix is to install the Microsoft Visual C++ Redistributables. There is a catch: games need the specific version they were built against, and newer versions do not replace older ones. Installing only the latest package will not fix a game that needs the 2013 package, and vice versa.

  1. Go to Microsoft's official Visual C++ Redistributable downloads page — search for it on microsoft.com rather than trusting a third-party mirror.
  2. Install the Visual C++ Redistributable for Visual Studio 2015-2022, both the x64 version and the x86 version.
  3. Also install the 2013 and 2012 redistributables, again in both x64 and x86, if the game is older or the error names a 110 or 120 file.
  4. Restart your PC, then try the game again.

Install both architectures even on a 64-bit PC: a 32-bit game needs the x86 package, and installing only x64 is the most common reason a 'fixed' error comes straight back. On Steam, also check the game's folder for a _CommonRedist or redist folder — many games ship the exact installers they need there.

Advertisement
DirectX and .NET repair

4. Install or repair DirectX and .NET

If the missing file starts with D3DX, XINPUT, or X3DAudio, the problem is DirectX, not Visual C++. Modern Windows includes DirectX 12, but older games need legacy DirectX 9 components that are not installed by default. The fix is Microsoft's DirectX End-User Runtime Web Installer, which adds those legacy files without downgrading anything. Run it, restart, and test the game.

A smaller number of launchers also need the .NET Framework or Desktop Runtime. If a launcher fails with a .NET error, install the version its support page asks for.

5. Verify the game files and update the game

Once the runtimes are installed, verify the game itself. A damaged install can produce a DLL error even when the runtimes are fine. In Steam, right-click the game, choose Properties, then Installed Files, then Verify integrity of game files. Our guide to verifying game files on Steam, Epic and GOG covers all three launchers.

Also make sure the game and Windows are fully updated. The Universal CRT files behind api-ms-win-crt errors arrive through Windows Update, so a PC with updates paused can be missing them even with the Visual C++ packages installed.

6. Fix the usual suspects: antivirus, corrupt installs, and bad mods

If the runtimes are installed and verification passes but the error persists, check what might be removing or blocking the files. Antivirus software occasionally quarantines a game's DLL as a false positive, especially after an update. Check the quarantine history, restore anything that belongs to the game, and add the game folder as an exclusion if you are confident the download source is legitimate.

Mods are another suspect. A mod that replaces game DLLs can break a working install overnight, so remove mods and test clean before assuming the base game is broken. Two deeper tools are worth knowing: System File Checker (sfc /scannow) scans protected Windows files, and DISM /Online /Cleanup-Image /RestoreHealth can repair the Windows image. Neither installs game runtimes, so run them only after the redistributables are in place.

7. Common missing DLLs and what installs them

Missing fileWhat it belongs toInstall this
MSVCP140.dll, VCRUNTIME140.dll, MSVCP140_1.dllVisual C++ 2015-2022Microsoft Visual C++ Redistributable 2015-2022 (x86 and x64)
MSVCP120.dll, MSVCR120.dllVisual C++ 2013Microsoft Visual C++ Redistributable 2013 (x86 and x64)
MSVCP110.dll, MSVCR110.dllVisual C++ 2012Microsoft Visual C++ Redistributable 2012 (x86 and x64)
MSVCP100.dll, MSVCR100.dllVisual C++ 2010Microsoft Visual C++ Redistributable 2010 (x86 and x64)
D3DX9_43.dll, XINPUT1_3.dll, X3DAudio1_7.dllLegacy DirectX 9DirectX End-User Runtime Web Installer
api-ms-win-crt-runtime-l1-1-0.dllUniversal CRTWindows Update, plus Visual C++ 2015-2022

If your error names a file not in this table, search for the exact file name with the game's name first. A game-specific DLL in the game's own folder usually means the install itself is incomplete, and verification or a clean reinstall is the right fix.

8. When a reinstall is actually the right move

A clean reinstall is the last step, not the first, but it is the right step when verification keeps finding damaged files, when mods or third-party packs modified the game folder, or when the error names a game-specific file rather than a runtime. Uninstall the game, delete any leftover folder manually, and install fresh — preferably after the runtimes above are already installed.

If a fresh install still fails, and the runtimes are confirmed installed in both architectures, look deeper: broken Windows updates, or a drive corrupting files as they are written. For most players, though, the story is simple: the game needed a runtime package, the package was missing, and installing the official package fixes it.

Sponsored

New guides and tools, by email

Email me when TheGameExtras publishes new cheat guides and tools. I can unsubscribe with one click at any time. We send a confirmation link first. How we handle your address.

Read next