Errors

Error 0xc000007b? The program loaded a file built for the other kind of Windows

Short answerError 0xc000007b means Windows loaded a DLL — a shared code file a program loads as it starts — that is the wrong kind, or damaged, so the program closed. What changed decides the fix:
  • It started after a reinstall or an update — the program's own files, or a shared package, were replaced with the wrong kind. Repair the program, then its package.
  • One program fails, the rest open — a file only this program uses is the wrong kind. The shared package must match the program, not the PC.
  • Many unrelated programs fail — a Windows file is damaged. Run DISM, then SFC.
Don't copy DLL files into the program's folder by hand. A file with the right name and the wrong kind causes this code.

You open a program and get a small box instead: The application was unable to start correctly (0xc000007b). Click OK to close the application. Nothing opens.

Windows programs come in two kinds. A 32-bit program needs 32-bit DLLs, and a 64-bit program needs 64-bit DLLs. That split is called the program's architecture. Loading the other kind gives this code.

Do it by hand below, or let Noah read this PC's event logs and installed software first (more at the end).

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.

  1. Do other, unrelated programs open? Try Notepad, Settings, and one app you installed yourself.
  2. 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:

zsh — Terminal
% Get-WinEvent -FilterHashtable @{LogName='Application','System'; StartTime=(Get-Date).AddDays(-1)} | Where-Object { $_.Message -like '*0xc000007b*' } | Format-List TimeCreated, LogName, ProviderName, Id, Message

Run 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:

zsh — Terminal
% DISM.exe /Online /Cleanup-image /Restorehealth

Run in the administrator Command Prompt. Microsoft notes it can take several minutes. Wait until it reports the operation completed successfully.

zsh — Terminal
% sfc /scannow

Run 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.
Try Noah free

The app opens again.

Just tell Noah what's wrong:

An app won't start and shows error 0xc000007b.
Find the wrong fileFirst conversation freeNew customers: 7-day free trialOnly with your OK

Already have Noah? Open it on this problem →

Frequently asked questions

What does error 0xc000007b mean?

It is Windows' code STATUS_INVALID_IMAGE_FORMAT. Windows loaded a DLL that is the wrong kind for the program, or damaged, so the program closed. In practice that is usually a 32-bit file in a 64-bit program, or the other way round.

A game shows 0xc000007b at startup. What should I check first?

Games load many DLLs at startup, including Visual C++ and DirectX files. One wrong-kind or damaged file stops the launch. Verify the game files in its store first, then check the Visual C++ packages the maker names.

Do I need the x86 or the x64 Visual C++ package?

Match the program, not the PC. A 32-bit program needs x86 even on 64-bit Windows, and a 64-bit program needs x64. If the maker does not say which the program is, install both latest v14 packages from Microsoft and restart.

What is the difference between 0xc000007b and 0xc0000135?

0xc0000135 means a needed DLL was not found. 0xc000007b means a DLL was found and then rejected as the wrong kind or damaged. Copying a file in by hand can turn the first code into the second.

Should I run SFC for 0xc000007b?

Run DISM and then SFC when many unrelated programs fail. For one failing program, repair that program and check its Visual C++ package first. SFC checks Windows' own files, not the program's.

Commands in this guide are standard, read-only macOS diagnostics unless noted; anything that changes your system is called out. When in doubt, back up first with Time Machine.