What 0xc000007b means
Most Windows programs rely on DLLs (dynamic link libraries) — shared code files that many programs load. Windows checks each file as it loads it.
Microsoft names code 0xC000007B STATUS_INVALID_IMAGE_FORMAT. The file Windows loaded is not a valid file of the kind the program needs. In practice that means a 32-bit DLL loaded into a 64-bit program, a 64-bit DLL loaded into a 32-bit program, or a damaged file.
The box does not name the file. It also differs from 0xc0000135, where the file is not found at all. Here the file was found, and then rejected.
First, find out how far it reaches
Two questions narrow it down. Neither changes the PC.
- Do other, unrelated programs open? Try Notepad, Settings, and one app you installed yourself.
- Did this start after the program was reinstalled, updated, or moved to this PC? A wrong-kind file usually arrives with a change.
Then see whether Windows logged it. In PowerShell, this lists entries from the last day that contain the code:
% Get-WinEvent -FilterHashtable @{LogName='Application','System'; StartTime=(Get-Date).AddDays(-1)} | Where-Object { $_.Message -like '*0xc000007b*' } | Format-List TimeCreated, LogName, ProviderName, Id, MessageRun in PowerShell; no administrator rights needed. Look for the failing program's name in each message. No entries does not prove nothing failed, because not every failure is written to these logs.
NoahNoah searches the Application and System logs for entries that mention the program, and reads the Windows version and build. The search covers the most recent 2,000 events in the time window, so an empty result does not prove nothing failed. Noah has no built-in way to read a program's architecture from its files, so it cannot name the wrong-kind DLL from the code.
Only one program fails
Other programs open normally. This one shows 0xc000007b every time.
A file only this program uses is the wrong kind, or damaged. That can be one of its own files. It can also be the shared package the next section covers.
Fixrepair the program first. Search for Control Panel, open Programs → Programs and Features, right-click the program, and choose Repair, or Change if Repair isn't offered. If nothing is offered, uninstall it, restart, and reinstall it from the maker's site.
Apps from the Microsoft Store repair in Settings instead. On Windows 11, open Apps → Installed apps, click ⋯ next to the app, and choose Advanced options → Repair. On Windows 10, open Apps → Apps & features, select the app, and choose Advanced options → Repair.
For a game, use the store's own repair as well. In Steam, right-click the game, open Properties → Installed Files, and choose Verify integrity of game files. Steam checks the game's files and re-downloads any that are damaged or missing.
NoahNoah lists the software installed on the PC, with each program's version and maker. That list does not show whether a program is 32-bit or 64-bit.
The shared package must match the program
The program was repaired or reinstalled, and it still shows 0xc000007b. Other programs open normally.
Programs built with Microsoft's C++ tools need a Visual C++ Redistributable. That is a Microsoft package of shared code. It comes in an x86 kind for 32-bit programs and an x64 kind for 64-bit programs.
The package must match the program, not the PC. A 32-bit program on 64-bit Windows still needs the x86 package. Without it, that program finds no package file it can load. That is the missing-file code, 0xc0000135; this code means a wrong-kind file was present and loaded.
Fixask the program's maker, or check its support page, which Visual C++ version and architecture it needs. To see what is installed, search for Visual C++ in Programs and Features. For a program built with Visual Studio 2015 or later, install the latest v14 packages for x64 and x86 from Microsoft's download page. Don't uninstall the existing ones first; other programs may rely on them.
Some games also need DirectX — Microsoft's package for graphics and sound that older games load at startup. If the maker names DirectX, install it from Microsoft. The version built into Windows 10 and 11 does not include every older file a game may list.
NoahNoah lists each Visual C++ Redistributable listed in Programs and Features, with its version. That list does not show which package a program was built against, or which architecture it needs. The program's maker can tell you.
Many unrelated programs fail
Programs from different makers all show 0xc000007b, often starting around the same day.
When unrelated programs fail the same way, a file Windows itself supplies is probably damaged. Repair Windows' own files first.
DISM supplies good copies of system files, and SFC (System File Checker) uses them to replace damaged ones. Microsoft says to run DISM before SFC.
Fixtype cmd in the Search box, right-click Command Prompt, and choose Run as administrator. Then run these one at a time:
% DISM.exe /Online /Cleanup-image /RestorehealthRun in the administrator Command Prompt. Microsoft notes it can take several minutes. Wait until it reports the operation completed successfully.
% sfc /scannowRun after DISM finishes. Don't close the window until verification reaches 100%. Then restart and try the programs again.
NoahNoah can search the Application and System logs for one program name at a time, so checking several programs means one search each. Noah has no built-in DISM or SFC repair.
What to avoid
- Copying a DLL into the program's folder, or into System32, by hand. A file of the wrong kind in those folders causes this code. It can also break every other program that loads the same file.
- Downloading a DLL from a DLL download site. The code doesn't say which file is wrong, and those copies come from unknown sources.
- Installing only the x64 Visual C++ package for a 32-bit program. Match the package to the program. When the maker does not say, install both kinds.
- Replacing Windows system files from another PC. The file may not match this Windows build. DISM and SFC supply files that do.