Windows · Windows 10/11 / Visual C++ Redistributable
Missing VCRUNTIME140.dll or MSVCP140.dll
Error message
The code execution cannot proceed because VCRUNTIME140.dll was not found.Why it happens
The application or game depends on the Microsoft Visual C++ 2015-2022 Redistributable runtime libraries, which are missing, outdated, or corrupted on a fresh Windows install.
How to fix it
- Install both the 64-bit and 32-bit Visual C++ Redistributables via winget: winget install –id Microsoft.VCRedist.2015+.x64 –exact and winget install –id Microsoft.VCRedist.2015+.x86 –exact
- If already installed, open Settings > Apps > Installed apps, find Microsoft Visual C++ 2015-2022 Redistributable, click Modify, and choose Repair
- Restart Windows after installing or repairing both x64 and x86 packages
- Reinstall the affected game or AI application if it ships a damaged local DLL copy
winget install --id Microsoft.VCRedist.2015+.x64 --exactSeeing a different message? Paste it into the Error Code Fixer
Related errors
- Application failed to start (0xc000007b)
- BSOD: WHEA_UNCORRECTABLE_ERROR
- BSOD: MEMORY_MANAGEMENT
- PyTorch CUDA Out of Memory
Fixes are reviewed by ComputerTech against current documentation, and software changes fast. If a step differs on your version, tell us. Back up important data before changing drivers, BIOS or system files.