Fix Visual C++ Runtime Error in Non-Steam Games
In this article
If you get a Visual C++ runtime error when launching a non-Steam game, the quickest fix is to install the latest Microsoft Visual C++ Redistributable packages (both x86 and x64) and then restart your PC. This error usually means the game needs a specific version of the Visual C++ runtime that is missing or corrupted. Below is a complete guide to resolve it.
What You'll Need
- Administrator access to your Windows PC (to install software).
- Internet connection to download the official Microsoft files.
- Your game's installation folder path (usually in Program Files or a custom folder).
Step-by-Step
- Identify the exact error message. Note the error number (e.g., 0xc000007b) and the DLL name if shown (like msvcp140.dll or vcruntime140.dll). This helps know which package is needed.
- Download the official Microsoft Visual C++ Redistributables. Go to Microsoft's official download page for "Visual C++ Redistributable for Visual Studio 2015-2022" (the latest all-in-one package). Download both the x86 and x64 versions. Even if your Windows is 64-bit, many games use 32-bit code, so install both.
- Run the downloaded installers as administrator. Right-click each installer and select "Run as administrator". Follow the prompts, accept the license, and click "Install". If prompted by UAC, click "Yes".
- Restart your computer. After installing both packages, restart your PC to ensure all runtime files are registered properly.
- Try launching your game again. If the error is gone, you're done. If not, continue to the next steps.
- Repair the game files (if using a game launcher). Even if the game is not on Steam, it might use a launcher like Epic Games Store, GOG Galaxy, or Uplay. Open that launcher, go to your library, find the game, and look for a "Verify" or "Repair" option (often under a settings or gear icon). This checks for missing/corrupted game files and re-downloads them.
- Install the game's required redistributables from its folder. Many games include Visual C++ installers in their installation directory. Navigate to your game's folder (e.g., C:\Program Files\GameName), look for a subfolder named "_CommonRedist" or "Redist" or "VC". Inside, you'll find installers like vcredist_x86.exe or vcredist_x64.exe. Run them as administrator and install.
- If the error mentions a specific DLL (like msvcp100.dll), install that specific version. For example, msvcp100.dll belongs to Visual C++ 2010. Download the 2010 redistributable from Microsoft (both x86 and x64) and install. Repeat for any other missing versions (2008, 2012, 2013, etc.).
- Check for Windows updates. Go to Settings > Update & Security > Windows Update, and click "Check for updates". Install all pending updates and restart.
- Reinstall the game (last resort). Uninstall the game completely, then reinstall it. This ensures all runtime files are placed correctly.
Common Mistakes
- Only installing the x64 version. Many games are 32-bit even on 64-bit Windows, so you need both x86 and x64 packages.
- Downloading from unofficial sites. Always use Microsoft's official download pages to avoid malware or corrupted files.
- Skipping the restart. Some runtime DLLs are only registered after a reboot.
- Ignoring the game's own redistributable folder. That folder often contains the exact version the game needs.
- Not running installers as administrator. Without admin rights, the installer may not write to system folders.
Tips
- Install the "Visual C++ Redistributable for Visual Studio 2015-2022" package first. It covers most modern games (2015 to 2022).
- Use the "Programs and Features" control panel to check installed versions. Search for "Microsoft Visual C++" in the list. If you see multiple versions, that's normal.
- If you have a 64-bit system, install both x86 and x64 versions of every redistributable. This prevents many compatibility issues.
- Keep your graphics drivers updated. Sometimes a runtime error is actually a driver issue, especially with DirectX games.
- Run the game as administrator. Right-click the game's .exe, select Properties > Compatibility, and check "Run this program as an administrator". This can bypass permission-related runtime errors.
Troubleshooting
If the error persists after following all steps, try these in order:
- Use the System File Checker. Open Command Prompt as administrator and run
sfc /scannow. This repairs corrupted Windows system files that may affect runtime DLLs. - Check for DirectX issues. Install the latest DirectX End-User Runtime from Microsoft's official site. Some games require DirectX components that also depend on Visual C++.
- Disable antivirus temporarily. Sometimes antivirus blocks the game from accessing runtime DLLs. Disable it for a test, but re-enable afterward.
- Run the game in compatibility mode. Right-click the game's .exe, go to Properties > Compatibility, and try running it in Windows 7 or Windows 8 mode if the game is older.
- Check the Windows Event Viewer. Press Win+R, type
eventvwr, and look under Windows Logs > Application for errors related to the game. The details may point to a specific DLL or module. - If the error is 0xc000007b, it's often a 32/64-bit mismatch. Ensure you installed both x86 and x64 redistributables. Also, verify that the game's executable is not corrupted by reinstalling the game.
Frequently Asked Questions
Why does my non-Steam game show a Visual C++ runtime error?
Because the game was built with a version of Visual C++ that isn't installed on your system. The error appears when the required DLL files (like msvcp140.dll) are missing or outdated.
Do I need to install every version of Visual C++ Redistributable?
Not necessarily, but installing the latest all-in-one package (2015-2022) covers most games. Older games may need 2008, 2010, 2012, or 2013 versions. It's safe to install all of them; they don't conflict.
Can I just copy the missing DLL file into the game folder?
It's not recommended. DLL files are system components and may be the wrong version or require registration. Installing the proper redistributable is the correct method.
Will this fix affect my Steam games?
No, it will only help. Visual C++ runtime is shared across all applications. Installing the correct versions can actually fix errors in Steam games too.
My game is 64-bit, do I still need the x86 version?
Yes, because many games use 32-bit helper libraries even if the main executable is 64-bit. Always install both x86 and x64 versions to be safe.
What if the error appears only after I install a Windows update?
Sometimes a Windows update can overwrite or remove a runtime DLL. Reinstall the latest Visual C++ redistributables after major Windows updates to restore the files.