How to Fix Missing DLL Errors in Windows Safely

Updated on November 6, 2026

If Windows says a DLL is missing, note the file name and the app that shows the error. You can usually get the right file by repairing the app or installing its official Microsoft dependency. Start with the matching row below.

Windows DLL files

Which fix matches your DLL error?

What you see What to try first
MSVCP140.dll or VCRUNTIME140.dll Install or repair the Visual C++ Redistributable required by the app.
D3DX9_43.dll or XINPUT1_3.dll in an older game Check the game’s prerequisites. It may need Microsoft’s legacy DirectX runtime.
A DLL from a single app or game Use the publisher’s installer or the launcher’s file repair option.
Windows features fail or several unrelated apps report system-file errors Install available Windows updates, restart, then check system files if the errors continue.

Repair the app or game

On Windows 11, open Settings > Apps > Installed apps. Find the app, open its menu and choose Advanced options > Repair if available. Some desktop programs have Repair or Change in Control Panel > Programs and Features. See Microsoft’s app repair steps.

For a game, use the launcher to verify the installed files. Steam calls this Verify integrity of game files under the game’s Properties > Installed Files. If you need to reinstall, use the publisher’s installer and back up any local saves or projects first. If Windows Security flagged a file, check what Defender put in quarantine before taking action.

Get Visual C++ or legacy DirectX from Microsoft

Visual C++: Use the package listed in the app’s requirements. A 32-bit app uses the x86 package even on 64-bit Windows. Different apps can need different packages, including older Visual C++ versions. Get them from Microsoft’s official Visual C++ downloads.

DirectX: Some older games use libraries that ship with the DirectX End-User Runtimes (June 2010). That package adds older components alongside the DirectX version already on your PC. Use it when the game calls for those components.

Use DISM and SFC for Windows system files

If the problem affects Windows itself, open Terminal (Admin). Run DISM first. When it finishes successfully, run SFC. Microsoft’s System File Checker guide explains the results and what to do if either tool reports an error.

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

Frequently asked questions

Where can I safely download a missing DLL?

Use the official app installer for app files and Microsoft’s package for Microsoft dependencies. The installer can place the right version and the other files it needs.

Can I download one DLL pack for every game?

Games have different dependencies. Start by verifying the files for the affected game, then check its requirements for Visual C++, DirectX or another component.

Can a 64-bit PC need the x86 Visual C++ package?

Yes. Match the package to the application. A 32-bit program can need the x86 package on a 64-bit PC.

Will SFC restore a DLL that belongs to a game?

SFC checks protected Windows files. Verify or reinstall the game to restore the files that came with it.

Does regsvr32 /u install a DLL?

The /u switch unregisters a component that supports the tool. To restore a missing app DLL, use its installer or repair option. Microsoft’s regsvr32 reference