You double-click a game or an older tool and get `The application was unable to start correctly (0xc000007b).` That code is STATUS_INVALID_IMAGE_FORMAT. The exe is fine. The library it loads is the wrong bit width, so the loader refuses it. Usually nothing is corrupted at all. If every program fails, start with this blue screen guide.
Quick steps
- Ask whether one app fails or every app fails.
- Read Event Viewer for the failing DLL name.
- Check the exe bitness with dumpbin /headers.
- Install both x86 and x64 VC++ 2015-2022.
- Run the DirectX End-User Runtime installer.
- Remove DLLs you downloaded from the internet.
- Stop when a clean app fails on a clean runtime.
Things you'll need
- An administrator account on the PC
- The exact name of the failing program
- Both VC++ 2015-2022 redistributable installers
- Windows SDK only if you want dumpbin
Step-by-step
Method 1 of 3: Decide Whether It Is One App or the System
Download image
Step 1: Count How Many Programs Fail
Open three unrelated programs: a browser, Notepad, and the failing app. If only one fails, the problem sits inside that app's folder. If all three fail, treat it as system-wide.
Source: Microsoft Learn — Dynamic-Link Libraries · See also Microsoft Learn — Running 32-bit Applications · Read next: Reinstall Windows 11 Without Losing Files
Download image
Step 2: Read the Event Viewer Entry
Open `Event Viewer → Windows Logs → Application` and look for an Error logged at the time of the crash. The faulting module name is the DLL you need. Without that name you are guessing at runtimes.
Download image
Step 3: Check the Exe Bitness
Run `dumpbin /headers "C:\Path\app.exe" | findstr machine`. `14C` means 32-bit and `8664` means 64-bit. If you do not have dumpbin, open Task Manager, go to the Details tab, right-click the column header and add the Platform column.
Download image
Step 4: Inspect the DLL That Failed
Run `dumpbin /headers` on the DLL from the event log. If the exe reports `14C` and the DLL reports `8664`, you have found the fault. One comparison, one answer.
Download image
Step 5: Cross-Check With Dependencies
Open the exe in the Dependencies tool and look for red entries marked with an architecture mismatch. It covers the whole import table at once. If the tool is missing, dumpbin per DLL works.
Download image
Step 6: Check the Antivirus Quarantine
Open `Windows Security → Virus & threat protection → Protection history`. A quarantined DLL loads exactly like a missing one. Check this before reinstalling anything.
Method 2 of 3: Install the Runtime That Matches
Download image
Step 7: Install Both VC++ Architectures
Get the VC++ 2015-2022 redistributable and run both `vc_redist.x86.exe` and `vc_redist.x64.exe`. They install side by side. Neither replaces the other, and this one step fixes most game launches.
Source: Microsoft Learn — Running 32-bit Applications · See also Microsoft Learn — Dynamic-Link Libraries · Read next: Reinstall Windows 11 Without Losing Files
Download image
Step 8: Install the DirectX End-User Runtime
Download the DirectX End-User Runtime from Microsoft and run it. It restores the D3DX and XInput libraries modern Windows no longer ships. Older games still need them.
Download image
Step 9: Run the Game's Own Redist Folder
Open the game folder and look for `_CommonRedist`, `Redist` or `Installers`. Run the vcredist and DirectX installers inside it. Those are the exact builds the game expects, which beats any newer package you found elsewhere.
Download image
Step 10: Repair Instead of Reinstall
Open `Settings → Apps → Installed apps`, find `Microsoft Visual C++ 2015-2022 Redistributable`, and choose Modify then Repair. Repair rewrites the DLLs without touching registry keys other apps depend on. Do it for both entries.
Download image
Step 11: Check the List for Both Bitnesses
In the same list, confirm there are two entries for each year range, one x86 and one x64. A single entry means one architecture is missing, which is why a repair changes nothing. Look closely.
Download image
Step 12: Clear the Conflicting Local Copy
If a wrong DLL sits next to the exe in the app folder, Windows loads it before the system one. Rename it to `.old` and launch again. Do not delete it, and if the app now starts, that copy was the problem.
Download image
Step 13: Verify With a Second App
Launch another 32-bit program to confirm the runtime now loads. If the original app still fails while the second works, the problem is that app's local files, not the shared runtime. That distinction saves you an hour.
Source: Microsoft Learn — Dynamic-Link Libraries · See also Microsoft Learn — Running 32-bit Applications · Read next: Reinstall Windows 11 Without Losing Files
Method 3 of 3: Remove Bad DLLs and Know When to Quit
Download image
Step 14: Find Files You Did Not Install
Sort `C:\Windows\System32` by date modified and look at anything changed in the last few weeks. DLLs dropped by a downloaded fix pack are the ones to suspect. Dates beat signature checks one by one.
Download image
Step 15: Restore the Original From Windows
Run `sfc /scannow` from an elevated prompt. It replaces protected system DLLs with signed originals. If it reports files it cannot fix, follow with `DISM /Online /Cleanup-Image /RestoreHealth` and run sfc once more.
Download image
Step 16: Reinstall the Affected Program Cleanly
Uninstall the app, delete its leftover folder in `Program Files`, and reinstall from the vendor. A bundled DLL that was replaced stays replaced until that folder is gone. Repair installs usually leave it in place.
Download image
Step 17: Check for a Broken Windows Install
If every 32-bit program fails, run `DISM /Online /Cleanup-Image /ScanHealth`. A damaged WoW64 subsystem shows up there. It is rare, and a repair install from Windows 11 install media is the fix when DISM cannot heal itself.
Download image
Step 18: Do Not Chase a Single DLL
Stop the moment you start searching for a DLL name on a download site. That road ends with a full machine of unwanted software. Use the vendor's installer instead.
Download image
Step 19: Stop at the Clean System Line
Stop when a freshly installed app fails on a freshly repaired runtime, or when three apps fail the same way. System files are the problem then. A repair install beats another round of DLL swaps.
Source: Microsoft Learn — Running 32-bit Applications · See also Microsoft Learn — Dynamic-Link Libraries · Read next: Reinstall Windows 11 Without Losing Files
Tips
- x86 and x64 VC++ install side by side. Installing one does not install the other, ever.
- SysWOW64 holds the 32-bit DLLs on a 64-bit system. System32 holds the 64-bit ones. That naming trips up everyone.
- Check a DLL's file version, not its date. A wrong-bit file copied in 2026 still carries an old version number.
- A game that ships a _CommonRedist folder wants that installer run. Do it first.
Warnings
- Never take a DLL from a download site. Those files are the most common malware carrier on Windows.
- Do not copy files into System32 to fix this. You will break programs that worked yesterday.
- Replacing d3d9.dll or xinput1_3.dll by hand breaks every game that shares it. Do not do it.
- An antivirus quarantine looks identical to this error. Check the protection history before reinstalling anything.
Frequently asked questions
Does 0xc000007b mean my Windows is broken?
No. It means one module had the wrong architecture. If only one app shows it, Windows itself is healthy.
I installed VC++ and it still fails. Why?
You probably installed only the x64 package. A 32-bit game needs the x86 one, which is a separate download and a separate install.
Can I fix it by running as administrator?
No. Elevation does not change a DLL's bit width. It only helps with file access errors.
Is this the same as 0xc0000142?
No. 0xc0000142 is a DLL initialization failure. 0xc000007b is a format and bitness failure.
References
- Microsoft Learn — Latest supported Visual C++ Redistributable downloads. https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
- Microsoft Learn — dumpbin options. https://learn.microsoft.com/en-us/cpp/build/reference/dumpbin-options
- Microsoft Learn — Windows system error codes. https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes
- Microsoft Support — Windows help and learning. https://support.microsoft.com/en-us/windows
Every guide is reviewed against its sources. See our editorial policy.
Reader comments
0 so farFinished this guide? Tell other readers what worked, what didn't, and what you would change.