A game that refuses to start and shows a dialog about a missing .dll file is often missing a Microsoft runtime library, not a file from the game itself. Windows ships with modern DirectX, but many PC titles still depend on the Visual C++ Redistributable packages and, for older games, legacy DirectX optional components. Installing or repairing those runtimes fixes a large share of launch failures without reinstalling the game.
Write down the exact DLL name from the error message before you install anything. The name tells you whether you need Visual C++ Redistributables, legacy DirectX components, or a Windows Update pass.
Which runtime does your error need?
| DLL name (examples) | What to install |
|---|---|
VCRUNTIME140.dll, MSVCP140.dll, MSVCP140_1.dll, VCRUNTIME140_1.dll | Visual C++ Redistributable (x64 and x86) |
api-ms-win-crt-runtime-l1-1-0.dll and related api-ms-win-crt-* entries | Visual C++ Redistributable and Windows Update |
d3dx9_43.dll, XINPUT1_3.dll, xapofx1_5.dll, D3DCompiler_43.dll | DirectX End-User Runtime |
dxgi.dll, d3d11.dll, d3d12.dll (system files) | Windows Update. Do not download these DLLs from third-party sites |
Never download individual .dll files from random websites and drop them into
System32 or your game folder. That is a common malware vector and can break other
software. Use the official Microsoft installers below.
Visual C++ Redistributable
Most modern PC games are built with Microsoft Visual C++. The redistributable installs the shared libraries those builds expect, including VCRUNTIME140.dll and MSVCP140.dll. A game may need the x64 package, the x86 package, or both, even on a 64-bit version of Windows.
- 1Open the official Microsoft page: Latest supported Visual C++ Redistributable downloads.
- 2Under Visual Studio 2015, 2017, 2019, and 2022, download X64 and run the installer.
- 3Return to the same page, download X86, and run that installer as well.
- 4When each installer finishes, restart your PC.
- 5Launch the game again and check whether the error is gone.
The 2015–2022 redistributables share one installer line. Installing the latest package repairs older VC++ 2015/2017/2019 installs on the same machine. You do not need separate downloads for each year.
If Visual C++ is already installed
Corrupted or half-removed redistributables can still trigger DLL errors.
- 1Open Settings → Apps → Installed apps (or Apps & features on older Windows builds).
- 2Search for Microsoft Visual C++ and note every 2015–2022 Redistributable entry for both x64 and x86.
- 3For each matching entry, choose Modify or Repair if offered. If Repair is not available, uninstall that entry, then reinstall it from the Microsoft page above.
- 4Restart and test the game.
Legacy DirectX components
DirectX 11 and 12 are built into Windows 10 and Windows 11. Some older titles, however, still call into legacy optional libraries such as D3DX9. Errors mentioning d3dx9_43.dll or similar names mean those optional components are missing, not that your entire DirectX installation is outdated.
- 1Download the DirectX End-User Runtime Web Installer from Microsoft Download Center.
- 2Run the downloaded installer and accept the license terms.
- 3Let the installer finish. It adds legacy optional components; it does not downgrade the DirectX version built into Windows.
- 4Restart your PC and launch the game.
Keep DirectX current on Windows
For errors involving core system graphics DLLs (dxgi.dll, d3d11.dll, d3d12.dll), the fix is an up-to-date Windows installation, not a standalone “DirectX 12 download.”
- 1Press Win + I to open Settings.
- 2Go to Windows Update and click Check for updates.
- 3Install all pending updates, including optional Advanced options → Optional updates driver or feature items if listed.
- 4Restart when prompted.
To confirm what DirectX version Windows reports, press Win + R, type dxdiag, and open the System tab. The DirectX Version line shows the runtime level your OS exposes to games.
Still seeing a DLL error?
If the named DLL matches the tables above and the official installers did not help:
- Verify game files: a partial install can leave the game looking for libraries that were never deployed with the title.
- Update GPU drivers: some launchers misreport driver or DXGI issues as generic missing-DLL errors.
- Check antivirus: security software occasionally quarantines redistributable installers or game binaries; restore or exclude the game folder, then reinstall the runtimes.
→ How to verify game file integrity (Steam, Epic, GOG, Xbox)


