sodcalculator

10 Tech How-To

D3dx9 42 dll is missing: Fix Windows Error

Guide 10-47146 · Updated · Step by step

The “d3dx9_42.dll is missing” error appears when a program that needs DirectX 9 cannot find this specific DLL file on your Windows system. The fix is almost always to install or repair the DirectX End-User Runtime redistributable, not to download the DLL from a random website. This article explains why the error happens, how to fix it safely, and how to avoid common pitfalls.

What Is d3dx9_42.dll?

d3dx9_42.dll is a component of the DirectX 9 runtime, specifically part of the D3DX utility library. DirectX is a collection of APIs that Windows uses for multimedia, especially games and graphics-heavy applications. The “42” in the filename refers to the build version of that library.

Many games and programs—especially older ones—were compiled against a specific version of the D3DX library. When you install such a program, it expects that exact DLL to be present in the Windows system folder or in the program’s own directory. If it’s missing, Windows displays an error like:

  • “The program can’t start because d3dx9_42.dll is missing from your computer.”
  • “d3dx9_42.dll not found.”
  • “Error loading d3dx9_42.dll.”

This usually happens because the program was installed on a system that had a different DirectX version, or because the DirectX runtime was never fully installed on your current system.

Why Does the Error Appear?

Windows 10 and 11 include DirectX 12, but they do not include all the older DirectX 9 runtime files by default. Many games and applications still rely on those older DLLs, so you need to install the DirectX End-User Runtime separately.

Common scenarios that trigger the error:

  • You installed a game that uses DirectX 9 but your system only has DirectX 11 or 12.
  • You uninstalled a program that removed the DLL because it was shared.
  • A system restore or cleanup tool deleted the file.
  • You copied a game from another computer that had the DLL, but your system doesn’t.

It’s also worth noting that the error can appear even on modern systems because the DirectX 9 runtime is not part of the base Windows installation. Microsoft provides it as a separate redistributable package.

How to Fix d3dx9_42.dll Missing

The safest and most reliable fix is to install the official DirectX End-User Runtime from Microsoft. This package installs all the DirectX 9 DLLs, including d3dx9_42.dll, into the correct system folders.

  1. Go to the Microsoft Download Center and search for “DirectX End-User Runtime.”
  2. Download the dxwebsetup.exe file.
  3. Run the installer and follow the prompts. It will download and install the necessary DirectX 9 files.
  4. Restart your computer after installation.
  5. Try launching the program again.

If the error persists, you can also try the full offline installer, which is a larger file but doesn’t require an internet connection during installation. Both are official Microsoft downloads.

After installing, the DLL should be in C:\Windows\System32 (on 64-bit systems, 32-bit versions go to C:\Windows\SysWOW64). You can verify by searching for the file in File Explorer.

What NOT to Do

When you search for d3dx9_42.dll, you’ll see many websites offering a direct download of the DLL file. Avoid these. They often bundle malware, adware, or outdated versions that can cause more problems. Microsoft does not provide DLLs as standalone downloads, and any site that does is not official.

Also, don’t manually copy a DLL from another computer. The file might be corrupted, or it might be the wrong 32-bit/64-bit version. The DirectX installer handles all of this correctly.

If you already have a DLL file from a questionable source, delete it and run the official installer instead.

Other Related Errors

The same fix applies to other missing d3dx9 DLLs, such as d3dx9_43.dll, d3dx9_40.dll, or d3dx9_27.dll. They are all part of the same DirectX 9 runtime. Installing the full runtime package will usually resolve all of them at once.

If you see an error about d3dcompiler_42.dll or d3dx11_42.dll, those are also part of the DirectX runtime and can be fixed with the same redistributable.

If the error mentions a different DLL entirely, like msvcp100.dll or vcruntime140.dll, that’s a Microsoft Visual C++ Redistributable issue, not DirectX. You would need to install the appropriate Visual C++ package instead.

Windows Updates and DirectX

Keeping Windows updated helps, but Windows Update does not always install the DirectX 9 runtime. That’s why you need the separate redistributable. After installing it, future Windows updates should not remove it, but some system cleanup tools might. If the error returns, just run the installer again.

For games that use Steam or other platforms, the game’s installation folder may include a _CommonRedist folder that contains the DirectX installer. Running that installer can fix the error without downloading anything extra.

Frequently Asked Questions

Can I just download d3dx9_42.dll from a website?

Technically you can, but it’s not recommended. The file could be outdated, corrupted, or bundled with malware. The official DirectX runtime is the safe and correct way to get the DLL.

Why does the error appear on Windows 10/11?

Because newer Windows versions don’t include all DirectX 9 files by default. Many older games and apps still need them, so you have to install the DirectX End-User Runtime separately.

Is d3dx9_42.dll a virus?

No, it’s a legitimate Microsoft file. However, viruses can sometimes disguise themselves with that name. If you find it in a suspicious location, scan it with antivirus software. The official installer places it in System32 or SysWOW64.

Do I need to install 32-bit and 64-bit versions?

The DirectX End-User Runtime installer automatically installs both 32-bit and 64-bit versions of the DLLs. You don’t need to manually choose.

Will this fix work for all DirectX errors?

No, it only fixes missing D3DX and related DirectX runtime files. If you have errors about other DLLs like MSVCP or VCRUNTIME, you need the Visual C++ Redistributable instead.

Can I uninstall DirectX after installing it?

No, DirectX is a system component and cannot be uninstalled separately. The runtime files stay on your system, which is fine—they don’t cause problems.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →