Missing DLL Error in Windows: How to Fix It Safely
Updated: Last checked:In this guide
What is a DLL?
According to Microsoft, a DLL (dynamic link library) is a library that contains code and data that more than one program can use at the same time. Much of Windows' functionality is provided by DLLs; for example, the Comdlg32 DLL gives programs their Open dialog box. This allows code reuse and saves memory and disk space.
When a program uses a DLL, it depends on it. Microsoft says a program may not run if a dependent DLL is upgraded, fixed, overwritten with an earlier version or removed from the computer; Microsoft calls these DLL conflicts. A “missing DLL” error usually comes from one of these.
First step by error message
Note which program shows the error and the name of the DLL; the fix depends on both.
| Situation | Likely cause | First step |
|---|---|---|
| Only one program will not start | The program's own file is missing or damaged | Repair the program, or uninstall and reinstall it from the maker's site |
| The DLL name starts with msvcp, vcruntime or concrt | A Visual C++ runtime library is missing | Ask the program's maker; usually Microsoft's Visual C++ package is needed |
| Several programs or Windows features fail | A Windows system file is damaged | Windows Update, then DISM and SFC |
| KERNEL32.dll error when installing Office | An unsupported old Windows (XP, Vista) | Microsoft says Office cannot be installed on these versions |
1. Repair or reinstall the program that shows the error
Microsoft's Windows 11 steps: select Start > Settings > Apps > Installed apps, select the More icon next to the program, open Advanced options (if present) and choose Repair. If there is no Repair, or it does not help, choose Reset. For desktop programs you can also right-click the program in Control Panel > Programs > Programs and Features and choose Repair or Change.
If repair does not help, uninstall the program and reinstall it from a setup you download from its maker's own site. The installer puts back the DLLs the program needs, in the right versions. If the error is in Office, see our “Office Won't Install” guide for Office's own repair.
2. Install the Visual C++ Redistributable from Microsoft
Microsoft says a Visual C++ Redistributable installs the Microsoft C and C++ runtime libraries, which many apps built with Microsoft's build tools need. In Microsoft's list, DLLs such as msvcp (the C++ Standard Library), vcruntime and concrt belong to these libraries.
Microsoft's “Latest supported Visual C++ Redistributable downloads” page offers one v14 package for apps built with Visual Studio 2017–2026. Microsoft says the package architecture must match the app's: a 64-bit program needs the X64 package and a 32-bit program the X86 package; there is a separate ARM64 package too. Microsoft says the latest v14 release supports Windows 10 and 11.
The same Microsoft page says that if you are trying to fix an app by updating the Visual C++ runtime libraries, you should contact the app's maker for instructions. So check the program's support page first; it usually says which package it needs.
3. For Windows files: Windows Update, DISM and SFC
First install pending updates with Start > Settings > Windows Update > Check for Windows updates, then restart the PC.
If the problem is in Windows itself, Microsoft recommends two built-in repair tools in this order. Type Command Prompt in the taskbar search, right-click the result and select Run as administrator. First type DISM.exe /Online /Cleanup-image /Restorehealth and press Enter; Microsoft says DISM gets the files needed for the repair from Windows Update and can take a few minutes. Then type sfc /scannow, press Enter and do not close the window until verification reaches 100%.
Microsoft explains the results: “Windows Resource Protection did not find any integrity violations” means no system files are missing or corrupt; “Windows Resource Protection found corrupt files and successfully repaired them” means the operation was successful; if you see “Windows Resource Protection could not perform the requested operation”, run the scan again in safe mode. These two tools repair only Windows' own files, not those of programs you installed.
Why not take files from DLL download sites?
Downloading a single DLL from an unknown site and copying it into the program folder or System32 can make the problem worse instead of fixing it. Microsoft lists a DLL being overwritten with an earlier version among the reasons programs stop running, and writes that Windows File Protection lets system DLLs be replaced only with a valid digital signature. You cannot verify the version, architecture or origin of a file you download that way.
Microsoft even tells developers to prefer the Redistributable packages over deploying DLLs one by one. The right route for users is the same: the program's own setup or Microsoft's package. If you have already run an unknown file, do a full scan with Windows Security.
Frequently asked
What is a DLL?
According to Microsoft, a library of code and data that several programs can use at the same time (dynamic link library). Much of Windows' functionality comes from DLLs.
How do I open a DLL file?
You don't: a DLL is not a document; programs load it while they run. Double-clicking does nothing useful; to fix a DLL, repair or reinstall the program that uses it.
Can I download the missing DLL and copy it into System32?
We advise against it. Its version and origin cannot be verified, and Microsoft writes that a DLL overwritten with an earlier version can break programs. Reinstall the program or use Microsoft's Visual C++ package.
How do I fix a missing msvcp140.dll or vcruntime140.dll?
Per Microsoft's list, these are Visual C++ runtime libraries. Install the package the program's maker names; usually Microsoft's latest v14 Visual C++ Redistributable (X64, plus X86 for 32-bit programs).
How long does an SFC scan take, and does it delete my data?
It depends on the PC; Microsoft only says not to close the window until verification reaches 100%. Microsoft says SFC scans all protected system files and replaces corrupted ones with a cached copy; its job is Windows' system files.
Is a DLL error a sign of a virus?
Usually not; the cause is a missing runtime package or a broken installation. If you downloaded a file from an unknown site, though, do a full scan with Windows Security.
Sources
The vendor facts in this guide rely on the pages below. How we check our guides
- Publisher: MicrosoftDynamic link library (DLL) - Windows Client
- Publisher: MicrosoftLatest Supported Visual C++ Redistributable Downloads
- Publisher: MicrosoftDetermine which DLLs to redistribute
- Publisher: MicrosoftUse the System File Checker tool to repair missing or corrupted system files
- Publisher: MicrosoftRepair apps and programs in Windows
3 more sources
- Publisher: MicrosoftInstall Windows Updates
- Publisher: MicrosoftTroubleshoot installing Office
- Publisher: MicrosoftStay protected with the Windows Security app





