Software & Apps > File Types How to Restore a Missing DirectX DLL File Where to find and where to place DirectX files By Tim Fisher Tim Fisher Facebook Twitter Senior Vice President & Group General Manager, Tech & Sustainability Emporia State University Tim Fisher has more than 30 years' of professional technology experience. He's been writing about tech for more than two decades and serves as the SVP and General Manager of Lifewire. lifewire's editorial guidelines Updated on February 13, 2023 Tweet Share Email Tweet Share Email File Types File Types Apps Windows MS Office Linux Google Drive Backup & Utilities Design Cryptocurrency What to Know Search Microsoft's site for DirectX, select the newest Runtimes link, and click Download.Open the DirectX installer and follow the prompts to extract all its files. It's best to make a custom folder for this.Open the CAB file with the DLL file you want. Move the DLL to the desktop, then copy it to System32. Restart the PC. This article explains how to extract a single DirectX DLL file from the DirectX installation package if you encounter an error message about a "missing" or "not found" DirectX DLL file. This information covers all Microsoft operating systems, including Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. How to Restore a Missing DirectX DLL file Restoring an individual missing DirectX DLL file is as easy as browsing through some folders and copying the file to wherever it needs to go. From Microsoft's website, select Search at the top of the page, and search for DirectX. Scroll through the search results and select Download DirectX End-User Runtimes (MM YY) for the latest release date. Select Download. The same DirectX installer works for all versions of Windows. Right-click your desktop and select New > Folder. Name the new folder something easy to remember like DirectX Files. Open the DirectX installer you downloaded and select Yes to accept the license agreement. Select Browse in the dialog box. Choose the folder you created in Step 4 and select OK. Select OK when you see the folder path in the text box. The DirectX installation program will extract all of its files to the folder. Open the folder you created earlier to find a large number of CAB files, a few DLL files, and one called dxsetup.exe. You can run dxsetup.exe to fully install DirectX and reinstall all DLL files. Locate the CAB file containing the DLL file you're looking for. For example, if you need the d3dx9_41.dll file, it can be found in CAB file Mar2009_d3dx9_41_x86. Double-click on the appropriate CAB file to open it. There are two versions of most DirectX CAB files: a 32-bit and 64-bit version. Files for 32-bit systems end with _x86, and 64-bit system files end with _x64. You need to know which version of Windows you're running to know which file to use. Move the DLL file to your desktop. Windows has built-in support for opening CAB files, but if another program opens it, look for an option to extract the file in the program's menu and extract it to your desktop. Copy the file to the System32 folder located in your Windows installation folder. It's here, on most computers: C:\Windows\System32 If you received an error message that specified another location where the DLL file is missing from (for example, in the folder of a particular game or graphics application), copy the DLL file there instead. Delete any copies of the DLL file from your desktop, and delete the folder with the extracted DirectX files. Leaving DLL files on your desktop can create problems in some situations. Restart your computer. After restarting, test to see if restoring the individual DLL file corrected the problem you were having. If you still get an error message, try reinstalling DirectX completely or troubleshoot for hardware-related DLL issues. Was this page helpful? Thanks for letting us know! Get the Latest Tech News Delivered Every Day Subscribe Tell us why! Other Not enough details Hard to understand Submit