Where to download and how to install DirectX - a detailed guide. Where is the folder with directx files located on the computer Where is directx installed

With the development of technologies for creating animation for computer games and graphic editors, there is a need for improved rendering of objects and visual effects. DirectX software is used to solve this problem. This is a kind of bridge between the video adapter, sound card and the software part of the graphics of games and editors, which allows you to improve the quality of the images displayed on the monitor screen. Every version of Windows includes a set of DirectX files that optimize the graphics experience. DirectX version updates may be shipped with game applications. To use DirectX, you need to have some understanding of installing, updating, removing and reinstalling the program in Windows 10.

Do I need to install DirectX on Windows 10

DirectX 12 for Windows 10 is a set of files with the *.dll extension, consisting of software libraries necessary for improved display of visual effects and sound. Windows 10 comes with DirectX 12 built in by default. This version does not require manual update. All files are downloaded automatically when updates are received from the official Microsoft website on the Internet.

You can determine the version of DirectX on your computer using the dxdiag command:

Even though DirectX 12 is preinstalled on Windows 10, the dxdiag dialog box may in some cases show an earlier version.

Problems can arise, as a rule, in two cases:

  • the game the user is running was written under old version DirectX, and the new version does not contain the required libraries;
  • Diagnostic Tools says DirectX 11.2. It means that:
    • the video adapter installed on the computer is outdated and does not support DirectX 12;
    • The video adapter drivers are outdated and need to be updated.

You can see which version the video adapter supports using the Device Manager console in the computer properties and the adapter manufacturer's website. To do this, in the "Device Manager" console, find the line "Video adapters", open it and write down the name of your adapter. Then go to the manufacturer's website and see the version of DirectX for which the adapter is configured in the pivot table. If version 11.2 is specified, then, accordingly, it will work with version 12, but it will only be able to use the libraries of version 11.2.

Video: How to check DirectX version in Windows 10

How to install (update) DirectX on Windows 10

To install (update) the version of DirectX, you need to go to the official Microsoft page and go to the required version of the operating system. The 12th version does not have a separate update package, and all updates are received automatically through the Update Center.

So, to check for an update for system components, you need:


Sometimes when starting the game, a warning appears about the impossibility of launching it due to the lack of any library. The library can be added from the required earlier DirectX set.

In the web installer window, check the system requirements and read the installation instructions. Then we download the executable library to the computer, run the dxsetup.exe executable file and then follow the installation instructions. Do not forget about unchecking those additional components offered during installation that you do not need. Also, don't install search engine Bing, offered as an attachment to the libraries.

Where is DirectX installed?

After downloading and running the dxsetup.exe executable file, the library archive folder can be installed to any user-specified location. By default, the directory will be unpacked to C:\Windows\System32. Before downloading the archive, it is recommended to create a folder under any name in the root of the disk. Download the archive there, unpack it, install DirectX to the selected location, and then delete the created folder.

What to do if DirectX is not installed

The application may not install if its version does not match the version of Windows OS. It is not possible to install version 12 on Windows 7, as well as version 11 on Windows XP.

Table: Windows Versions and Their Corresponding DirectX Versions

Versions of DirectXOperating Windows systems
DirectX 11.3–12.0Windows 10
DirectX 11.2Windows 8.1
DirectX 11.1Windows 8
DirectX 11.0Windows 7
DirectX 10.0Windows Vista
DirectX 9.0СWindows XP

In addition, there may be other reasons why DirectX cannot install:

  • the executable file dxsetup.exe may be affected by a virus. This often happens if the download was made from an unverified site. Therefore, the downloaded file must be immediately checked by an antivirus;
  • The downloaded archive may not match the bit depth (bit depth) of your system. If you have a 32-bit Windows OS, the archive for a 64-bit OS will not be installed on your computer;
  • your computer's anti-virus software may block the file while it is being downloaded. You need to disable the antivirus and try downloading the file again;
  • no rights to install. IN context menu file, you must choose to run as administrator or grant rights to install;
  • The computer's RAM and cache memory are littered with all sorts of garbage. You need to clear the memory using special programs for this. It can be Wise Care 365, Glary Utilites, Ccleaner and others. After clearing the memory, restart the computer and repeat the installation.

DirectX installation failed

During installation, an unexpected failure may occur and an error message box will appear.

If the installation of DirectX fails, there are several options to try to overcome the problem:

  • download the executable file dxsetup.exe from another site and run it;
  • install Windows in update mode, as there may be a failure in the operation of its components;
  • run from command line on behalf of the administrator, the chkdsk and sfc /scannow utilities and completely check the hard drive;
  • for more advanced users, a hint can be found in the DXError.log and DirectX.log files in the Windows folder. If there is not enough knowledge in this area, then it is better to consult a specialist, for example, in online mode.

Video: Troubleshooting DirectX Installation Error

How to reinstall DirectX

Reinstalling the application is carried out in two ways:

  • complete removal installed version and replacing it with a similar one. It is used when frequent drop-down windows with warnings about DirectX errors;
  • update of the installed version. The DirectX software is set up so that when you reinstall, the missing dll files are added to the existing library package. If you need to add libraries from DirectX 9.0C to DirectX 12.0, they will simply be attached to the files of the installed version.

To properly reinstall, before performing it, you need to carry out a number of specific actions:


Removing DirectX in Windows 10

Complete removal of the built-in DirectX application in Windows 10 cannot be done through the standard "Uninstall or change a program" function in the Control Panel.

To address this issue, there are many third party programs, allowing you to uninstall DirectX 12, completely clearing directories and registry branches from it. The following utilities are examples of such programs.

To correctly remove DirectX 12 from Windows 10, you can download on the Internet and install one of them:

  • DirectX Happy Uninstall - the utility is distributed on a shareware basis. Is one of the most correct in work;
  • DX Killer - the application is distributed free of charge, has a Russian-language interface;
  • DirectX eradicator - can be run from removable media without installation on a computer.

On the Internet, you can search for various programs for working with the DirectX 12 application in Windows 10. Each user has his own requirements, habits, and certain priorities that he voluntarily or involuntarily tries on software. Someone is more accustomed to working with English versions of programs, for others it creates a great inconvenience. This should be approached based on its capabilities and user requirements for using the application software interface.

After the advent of very affordable computers, technologies began to develop much faster in various directions, and sometimes give rise to new ones, which is why now you can hear a lot of obscure words in ordinary conversation, for example, DirectX. Some and you may ask a question about where to install DirectX.

This article will focus exclusively on the DirectX graphics library: why is it needed, where it is used, by whom it was created, and most importantly, how to install it on your own computer. Our article is recommended exclusively for novice users of the Windows operating system, because the DirectX library works only there.

Why you need DirectX

First you need to figure out what it is. For example, you start the game, and in your RAM millions of bytes of information begin to be downloaded so that it is processed not only by the central processor, but also by the graphics processor. In addition, it is necessary to read keystrokes, mouse position, commands from the operating system, and much more. Maybe it will be news to you, but everything in the computer is processed exclusively sequentially.

The question is how to get the computer to do all this - for this, instructions to the computer are needed. If we abstract, then the program code that the game developers wrote is the instructions. Now imagine that when creating a new game, you need to do it all over again, which means literally "ruining" the years of your life, but there is no need for this, because there are special software, for example, the DirectX graphics library.

Programmers will connect it, after which it will be possible to intelligently use its resources to control processes, display graphics and much more. However, some computers do not come with this library out of the box, so below we will tell you where to install DirectX. We remind you that the instruction is only suitable for the Windows operating system, under which, by the way, the library was created. By the way, it is also used in the Xbox console.

Where to install DirectX 9.0

If you want to install the ninth version, then you are probably using an outdated operating system, such as Windows XP, so we strongly recommend that you upgrade to version 10, since XP maintenance has expired a few years ago, so the system is full of vulnerabilities. However, if you do not want to do this for personal reasons, then instructions will be given below.

Instructions for installing the ninth version of DirectX:

  1. This version was developed at about the same time as Windows XP, so it can no longer be found on the official website, only the tenth or eleventh, depending on the video card. Create an appropriate search query in the browser.
  2. Download not from the official resource, wait for the complete download and start the installation.
  3. Accept the agreement. Restart your computer after installation.

Where to install DirectX 11 for Windows 7

It is worth noting that Windows 7 supports any version of this library, with the exception of DirectX 12, which was created exclusively for Windows 10 and is an integral part of it. Installation instructions will be given below, but if you don’t want to download from the Internet, then look for a disk from the box from under the video card, there must be a library supported by your video card, or download Windows 10.

Instructions on where to install DirectX 11:

  1. Go to the official DirectX website, where you will be prompted to download their product.
  2. Wait for the download process to finish.
  3. Start the installation, agreeing to the terms of use along the way.
  4. The installer will find the best path itself, so just wait until the end and restart the computer.

Finally

We hope that after reading this article, you understand where to install DirectX and what it was created for. It is worth noting that video cards, depending on their generation, support different versions of DirectX, so even after installing version 11, only 10 can work, etc.

DirectX should be understood primarily as a set of necessary tools and technologies that allow the developer to create high quality pictures and sound, for example, in some kind of computer game. At its core, DirectX and its components are responsible for literally everything. It is divided into several parts, each of which performs a special function, these are: DirectDraw - is used to accelerate the display and processing of two-dimensional graphics, Direct3D - is used to accelerate three-dimensional graphics, DirectSound - works with sound, namely, it mixes and plays 3D sound, DirectInput - used to process the keyboard, mouse, joystick and other peripheral devices, DirectPlay - mainly used to serve a network game, DirectAnimation - used to create animation effects in WEB pages, DirectShow - to use multimedia in the WEB, DirectMusic - a new section that is used to use music in games.

By the way, it is worth saying that DirectX was conceived and developed specifically to turn the Windows operating system into the main platform for developing and creating games and, of course, in order to play them. Fortunately, today DirectX comes with almost any software that needs it. In addition, DirectX is now updated automatically, which means that the user now does not even need to download any specific version of DirectX from the Internet and install it himself, but in some individual cases manual installation of this software is required.

Where is DirectX installed and unpacked?

First you need to decide on the version of DirectX. Most often, DirectX 10 and DirectX 11 are used today, but it is advisable for the user to look at the version of DirectX that the installed video card supports and download it from the official website. After starting, you need to unpack the archive with DirectX to any folder on your hard drive. After launching a special application (dxsetup.exe), the program will indicate to the user the directory in which DirectX will be installed, or it will be installed automatically. It is usually installed to the local drive C:/Windows/%SystemRoot%/system32. Once DirectX is installed, the user will be able to run a large number of demanding graphics applications and games.

Your IT assistant

With the development of technologies for creating animation for computer games and graphic editors, there is a need for improved rendering of objects and visual effects. DirectX software is used to solve this problem. This is a kind of bridge between the video adapter, sound card and the software part of the graphics of games and editors, which allows you to improve the quality of the images displayed on the monitor screen. Every version of Windows includes a set of DirectX files that optimize the graphics experience. DirectX version updates may be shipped with game applications. To use DirectX, you need to have some understanding of installing, updating, removing and reinstalling the program in Windows 10.

DirectX 12 for Windows 10 is a set of files with the *.dll extension, consisting of software libraries necessary for improved display of visual effects and sound. Windows 10 comes with DirectX 12 built in by default. This version does not require manual updating. All files are downloaded automatically when updates are received from the official Microsoft website on the Internet.

You can determine the version of DirectX on your computer using the dxdiag command:


Even though DirectX 12 is preinstalled on Windows 10, the dxdiag dialog box may in some cases show an earlier version.

Problems can arise, as a rule, in two cases:

  • the game that the user is running was written for an old version of DirectX, and the new version does not contain the required libraries;
  • Diagnostic Tools says DirectX 11.2. It means that:
    • the video adapter installed on the computer is outdated and does not support DirectX 12;
    • The video adapter drivers are outdated and need to be updated.

You can see which version the video adapter supports using the Device Manager console in the computer properties and the adapter manufacturer's website. To do this, in the "Device Manager" console, find the line "Video adapters", open it and write down the name of your adapter. Then go to the manufacturer's website and see the version of DirectX for which the adapter is configured in the pivot table. If version 11.2 is specified, then, accordingly, it will work with version 12, but it will only be able to use the libraries of version 11.2.

To install (update) the version of DirectX, you need to go to the official Microsoft page and go to the required version of the operating system. The 12th version does not have a separate update package, and all updates are received automatically through the Update Center.

So, to check for an update for system components, you need:


Sometimes when starting the game, a warning appears about the impossibility of launching it due to the lack of any library. The library can be added from the required earlier DirectX set.

In the web installer window, check the system requirements and read the installation instructions. Then we download the executable library to the computer, run the dxsetup.exe executable file and then follow the installation instructions. Do not forget about unchecking those additional components offered during installation that you do not need. And also, you should not install the Bing search engine, offered as an application to libraries.

After downloading and running the dxsetup.exe executable file, the library archive folder can be installed to any user-specified location. By default, the directory will be unpacked to C:\Windows\System32. Before downloading the archive, it is recommended to create a folder under any name in the root of the disk. Download the archive there, unpack it, install DirectX to the selected location, and then delete the created folder.

The application may not install if its version does not match the version of Windows OS. It is not possible to install version 12 on Windows 7, as well as version 11 on Windows XP.

Table: Windows Versions and Their Corresponding DirectX Versions

In addition, there may be other reasons why DirectX cannot install:

  • the executable file dxsetup.exe may be affected by a virus. This often happens if the download was made from an unverified site. Therefore, the downloaded file must be immediately checked by an antivirus;
  • The downloaded archive may not match the bit depth (bit depth) of your system. If you have a 32-bit Windows OS, the archive for a 64-bit OS will not be installed on your computer;
  • your computer's anti-virus software may block the file while it is being downloaded. You need to disable the antivirus and try downloading the file again;
  • no rights to install. In the context menu of the file, you must select run as administrator or grant rights to install;
  • The computer's RAM and cache memory are littered with all sorts of garbage. You need to clear the memory using special programs for this. It can be Wise Care 365, Glary Utilites, Ccleaner and others. After clearing the memory, restart the computer and repeat the installation.

During installation, an unexpected failure may occur and an error message box will appear.

If the installation of DirectX fails, there are several options to try to overcome the problem:

  • download the executable file dxsetup.exe from another site and run it;
  • install Windows in update mode, as there may be a failure in the operation of its components;
  • run the chkdsk and sfc /scannow utilities from the command line as administrator and completely scan the hard drive;
  • for more advanced users, a hint can be found in the DXError.log and DirectX.log files in the Windows folder. If there is not enough knowledge in this area, then it is better to consult a specialist, for example, in online mode.

Reinstalling the application is carried out in two ways:

  • Complete removal of the installed version and replacing it with a similar one. It is used when frequent drop-down windows with warnings about DirectX errors;
  • update of the installed version. The DirectX software is set up so that when you reinstall, the missing dll files are added to the existing library package. If you need to add libraries from DirectX 9.0C to DirectX 12.0, they will simply be attached to the files of the installed version.

To properly reinstall, before performing it, you need to carry out a number of specific actions:


Complete removal of the built-in DirectX application in Windows 10 cannot be done through the standard "Uninstall or change a program" function in the Control Panel.

To solve this issue, there are a large number of third-party programs that allow you to uninstall DirectX 12, completely clearing directories and registry branches from it. The following utilities are examples of such programs.

To correctly remove DirectX 12 from Windows 10, you can download on the Internet and install one of them:

  • DirectX Happy Uninstall - the utility is distributed on a shareware basis. Is one of the most correct in work;
  • DX Killer - the application is distributed free of charge, has a Russian-language interface;
  • DirectX eradicator - can be run from removable media without installation on a computer.

On the Internet, you can search for various programs for working with the DirectX 12 application in Windows 10. Each user has his own requirements, habits, and certain priorities that he voluntarily or involuntarily tries on software. Someone is more accustomed to working with English versions of programs, for others it creates a great inconvenience. This should be approached based on its capabilities and user requirements for using the application software interface.

DirectX- this is software that links devices and the operating system of a computer, including programs installed on it. It acts as an interface for both software developers and computer device manufacturers.

Programs interact with DirectX, and DirectX, in turn, works with computer devices. This interface is intended primarily to ensure the compatibility of developed programs with most equipment and eliminate the need to write similar software functions for different brands of equipment of the same type several times.

Q. What components are included in DirectX?
ABOUT. DirectX includes the following tools: DirectDraw, Direct3D, DirectSound, DirectInput, DirectPlay, DirectAnimation, DirectShow, and DirectMusic. Each of these tools is used to work with a specific type of object, for example, DirectDraw is used to process two-dimensional images, Direct3D - three-dimensional, DirectSound is responsible for three-dimensional sound and mixing.

Try to remove it.

Q. How to uninstall new version and install the old one
ABOUT. According to Microsoft's official statement, it is not possible to remove DirectX from the system. Problems when working with Windows XP 95 version of DirectX, you can update it, but you will not be able to change the new version to the previous one. The program will help solve this problem DirectX Eradictor, designed to remove DirectX from version 2.0 to 9 inclusive. Download program. Unzip all the program files to a directory on your hard drive and run the dxerad.exe file. When asked if you really want to uninstall DirectX, answer "Yes". To successfully complete the DirectX removal, restart Windows. After that, all DirectX files will be deleted and the system registry will be cleaned. If the removal of DirectX was successful, install another version of DirectX, since neither games nor multimedia applications will work without DirectX.

Another program to uninstall DirectX is DirectX Killer 1.0- This program is designed to remove the DirectX tool from your computer. Download.

DirectX Happy Uninstall- a utility that completely removes a set of DirectX multimedia libraries of any version, including DirectX 11, from the system. There is an option to save a DirectX backup copy (before deleting it) with the possibility of its automatic restoration. Supported systems: Windows 2000/XP/2003/Vista/2008/Win7/2008R2 x86 and x64. The program is paid. Program website

How can I find out what version of DirectX is installed on my computer?
ABOUT. You can determine the version of the DirectX interface using the System Information program. This program is launched using the Start menu - » Programs - Accessories - » System Tools - System Information. In the menu at the top of the System Information window, find the item Tools, there select the DirectX Diagnostic Tool. Or Start - Run, write dxdiag - OK.

Creation date: 2009-03-31 15:25:43
Last edited: 2012-02-08 08:19:22

    Links to programs:
  1. DirectX End-User Runtimes ( directx to run games) June 2010. Download (95 megabytes).
  2. DirectX SDK ( directx for programming) June 2010. Download (2 megabytes).

DirectX is a set of libraries designed primarily for graphics output.

In order to write programs that use DirectX, you need to install the Directx sdk. To run programs written using DirectX, directx end-user runtimes must be set. In this tutorial, we will cover the installation of both components.

Different versions of DirectX use the same files: DirectX 9.0c on Windows XP DirectX 10 on Windows Vista and DirectX 11 on Windows 7 - the same installation files are suitable for all these versions. Those. all versions of Windows need the same archive with installation files for DirectX End-User Runtimes or DirectX SDK.

Installing DirectX End-User Runtimes (directx for running games)

To run games and programs written using the Directx library, you need to install directx end-user runtimes.

You already have one of the DirecX end-user runtimes installed on your computer. For the programs we'll be building, older versions are fine, and if you don't need the latest DirectX end-user runtimes, you can skip to the next step.

Latest (July 2010) version directx end-user runtimes came out in June 2010. You can find the latest version on a disk with some recently released game or download from the link at the beginning of the lesson.

After you have downloaded and launched the directx_jun2010_redist.exe file, a window with a license agreement will appear:

After clicking on the Yes button, you will need to enter the path to the temporary folder where the archive will be unpacked:

After the archive has been unpacked, you need to go to the temporary folder you specified and run the DXSETUP.exe file. The following window will open:

All. We are done with installing DirectX end-user runtimes. Now, in order to create programs that use the capabilities of directx, you need to install directx sdk. But first, a little history lesson:

Before you start reading the lessons in this section (DirectX), you should have learned most of the material in the C++ section. Most likely you have a number of questions. And the most important of them: how to start creating your own game using the studied material? Below I will try to answer it. At least you will learn the theory. We will do the practice later.

So far, our programs have been running in the DOS console. In doing so, we used the C++ language.

C++ is the foundation. Without knowing this language, you will not be able to create any game. Of course, adherents of Pascal, BASIC or Fortran (if there are any :)) may object that it is also possible to create some games in these languages. Only oh, what, they were in the mid-eighties. Then, yes, they looked very cool.

Now I will tell you a very important thing. It's simple and you probably already know it. At least if someone had explained this to me ten years ago, perhaps my whole life would have turned out differently.

So: “computers have layers” (C) Shrek. 🙂 Sorry, I couldn't resist.

Computers have levels. The lowest level is the level of physical elements (transistors and wires). The highest (of those that we know so far) is the C ++ language. That is why it is called a high-level language. Between these levels there are several more: the microarchitectural level (at this level there is communication with the processor), the operating system level, the assembly language level (assembler is a low-level language).

When we start executing a program, C++ commands are translated to lower levels. At the lowest level, these commands are carried out directly by an electrical signal. One higher-level command may consist of several lower-level commands.

For ease of understanding, consider that each higher level command consists of several lower level commands. Those. the higher level is just an abstraction over the lower one.

In the late eighties - early nineties, there were no (more precisely, they have not yet become widespread) higher abstractions (levels) than a programming language. In our case, this is C. All applications were written in a high-level language: Pascal, C, Fortran. The creation of graphics and graphical applications took place directly in a high-level language.

Here's something to notice! Most high-level programming languages ​​have roughly equal capabilities. Be it Pascal, Java or C++. It is clear that some of these opportunities are larger, others are smaller. But they have a lot in common: they all have loops and branches, functions, variables.

There are rumors that C++ is much more difficult to learn than Pascal or other programming languages. I hope that by studying the material from the C ++ section, you are convinced that this is not so.

In my opinion, the widespread opinion about the complexity of C ++ is the result of a brazen and shameless sabotage on the part of Delphi adherents! In fact, Pascal is much more difficult to learn. Just think, they use begin and end instead of brackets. And how do they perform the assignment - by the operator := (yes, colon and equal sign). In short, a real madhouse!

When video accelerators appeared, programmers had to write separate code for each. Go to any online store that sells video cards and imagine that you would have to write separate code for each video card. In general, a serious problem appeared before the programmers.

In the mid-nineties, the Windows operating system began to spread very quickly. Windows was originally written in C (not C++, no. I.e. there were no classes). Windows still uses some of the old code. When we start creating applications for Windows, we will get acquainted with an even higher level - WinAPI (Windows API). WinAPI is used by all applications under Windows.

WinAPI (API - Application Programming Interface. Application Programming Interface) - is a set of functions and structures written in C.

Windows used (and still uses) its own graphics output system. It is called - GDI (stands for Graphical Device Interface - a graphics device interface, and not the Global Defense Initiative, as a particularly insightful and erudite reader might think).

GDI, due to the peculiarities of WinAPI, was not suitable for creating games. Because GDI is oooo -ezeyee MEEEDEENNAAAAAAAAAYAYA. By the way, if you look at the Delphi minion forums, you will find that many people are trying to create games using GDI. As I said, they are sick people. So, game developers were in no hurry to create games for Windows, they were more accustomed to working under the good old DOS.

And then Microsoft creates DirectX. The first version was complete crap. But as time went on, DirectX became more and more reliable. In the new Windows 7 operating system, the eleventh version will already be available.

We will analyze examples for the ninth version. The differences between the ninth and tenth are significant. Perhaps in the future we will consider the tenth, although most likely we will immediately move on to the eleventh.

What is DirectX. This is a high-level API written in C++ using COM (Component Object Model) technology. We will briefly review it. DirectX is designed to work with video card drivers. For each video card, drivers are created (the language of commands that the video card understands). The programmer no longer needs to write separate code for each driver for each video card. He only needs to know the DirectX API. All low-level work (interaction with drivers) is handled by DirectX.

In fairness, it must be said that there is another popular library - OpenGL. The principle of operation is approximately the same: the programmer works with the API, and OpenGl itself works with the drivers. The indisputable advantage of OpenGL is its multiplatform nature. Those. OpenGL will run on all operating systems. DirectX only works on Windows. We will consider the advantages of DirectX later (and they are, and, in my opinion, they are much more significant).

In order to run programs written using DirectX, you need DirectX End-User Runtimes (we installed it in the previous paragraph).

To write applications that use DirectX, you need to download the DirectX SDK (Software Development Kit - a set of application development tools).

You have two options for installing directx sdk:

1. Download DirectX SDK from the Microsoft website. In this case, you will download the full version with all the examples, documentation and additional tools. The archive size is approximately 580 megabytes. When installing DirectX SDK will take more than a gigabyte.

2. Download DirectX SDK from your favorite site (link at the beginning of the lesson). At the same time, you will download the version cut down by me, in which I left only the library / header files and one example. The archive size is 2 megabytes ( two megabytes.). What is called, feel the difference! When installing, DirectX SDK will take twenty-seven megabytes.

Attention:
If you are reinstalling the DirectX SDK, be sure to uninstall the previous version (via Add/Remove Programs). It is highly undesirable to install a new version of the DirectX SDK over the old one. This note only applies to the full DirectX SDK. For a stripped-down version, it is enough to replace the lib and include folders.

A page will open from which you can download the latest version of the DirectX SDK - dated August 9th.

So, on the next page, click on the button Download. A save file dialog will appear and the download of the directx sdk will begin:

By the way, in one of the latest versions of DirectX, technical reviews of two new technologies that will be used in DirectX 11 were added: Direct2D and DirectWrite. If you know English, be sure to check out the relevant sections on MSDN: Direct2d and DirectWrite. When I was preparing the lesson, I sat in the documentation for two hours. It is a pity that it was not possible to test. I think in the future we will definitely discuss these technologies in the mailing list.

After downloading the installation file, run it. I will illustrate the further process of clicking on the “Next” button with pictures:

Everything is much easier and faster here. Click on the link at the beginning of the lesson. Or in the section Listings and Programs look for "DirectX SDK", download the file to your computer and unpack. At home, I unpacked the archive to the root directory of drive D. As a result, the installation folder looks like this: D:\directx\

A small note: I cut out a lot of things to reduce the archive. In the future, you will need to download a few more files, which will be announced later. They will also be small.

Finally, let's see how it works.

In order for the DirectX libraries to work at run time, the appropriate header files must be included in the program. Additionally, library files are required. What it is? We haven't encountered them yet. As we know, header files store function declarations. Function bodies are usually stored elsewhere. In the tutorial on multi-file programs, we kept function bodies in separate source files. If you buy a library of functions and classes from someone, you get header files (where the declarations are stored) and library files (where the definitions are stored). Library files have the .lib extension.

The IDE is currently unaware of the existence of DirectX. We need to tell where the Visual C++ 2008 IDE should look for the header and library files.

Open the menu item Tools → Options (Service → Options).

In the left part of the window that opens, select Projects and Solutions → VC++ Directories (Projects and Solutions → VC++ Directories):

On the right side of the dropdown list Show directories for(Show directories for:) select Include files(Included files, I can't vouch for the exact name of the item in Russian, it's the second one there). Then from the toolbar select new line(New line) or click Ctrl+Ins. See the picture for a better illustration. A new line will appear. Click on the button with three dots at the end of the line

The directory selection window will open. Navigate to the folder where you have DirectX installed. And select the Include folder.

Now in the drop down list (where you chose Include files) select Library files(library files) and repeat the add line operation. Now choose a folder lib/x86 if you have a 32-bit operating system or lib/x64 if 64-bit. Sometimes, when using 64-bit libraries, errors occur during the launch of programs, so if a program using DirectX does not start for you, return to this window and for the field Library files select folder lib/x86.

Click OK. The IDE now knows where to look for the DirectX SDK header and library files.

Now open the project File - Open - Project/Solution or click Ctrl+Shift+O.

If you downloaded the SDK from the Microsoft website, then the example is located in the folder (D:\directx is the folder where I installed my version): D:\directx\Samples\C++\Direct3D\Tutorials\Tut01_CreateDevice

If you downloaded the SDK from my website, the project can be found at (D:\directx is the folder where I installed my version): D:\directx\Samples\Tut01_CreateDevice

There are two solutions in the folder: for Visual C++ 2005 and for Visual C++ 2008. Select the solution that matches your version of Visual C++.

Now press Ctrl+Alt+F7 and F5.

Here she is. The first program to use DirectX.

Before closing the IDE, let's take a look at the code.

In Solution Explorer, select the CreateDevice.cpp file. If you skim through the entire file, you probably won't understand anything.

Surprising as it may seem :), but the structure of the program is very similar to what we have already created: #include directives, InitD3D(), CleanUp(), Render(), MsgProc() functions.

The wWinMain function is analogous to main. It starts the execution of the program in Windows.

In the variable declaration lines:
LPDIRECT3D9 g_pD3D = NULL; // Used to create the D3DDevice
LPDIRECT3DDEVICE9 g_pd3dDevice = NULL; // Our rendering device

There are new types. In fact, they are overridden with a typedef (which we have already looked at) from the standard types.

Something we don't know:
g_pD3D->CreateDevice
Here, g_pD3D is an object and CreateDevice() is a method. Why the -> syntax is used instead of the dot we are used to, we will learn in one of the following lessons.

Yes, many new types are used here, many new functions, but still, behind all this tinsel, you can guess the already familiar (I hope this is true) C ++ for us.

After the advent of very affordable computers, technologies began to develop much faster in various directions, and sometimes give rise to new ones, which is why now you can hear a lot of obscure words in ordinary conversation, for example, DirectX. Some and you may ask a question about where to install DirectX.

This article will focus exclusively on the DirectX graphics library: why is it needed, where it is used, by whom it was created, and most importantly, how to install it on your own computer. Our article is recommended exclusively for novice users of the Windows operating system, because the DirectX library works only there.

First you need to figure out what it is. For example, you start a game, and millions of bytes of information begin to be loaded into your RAM so that it is processed not only by the central processor, but also by the graphics processor. In addition, it is necessary to read keystrokes, mouse position, commands from the operating system, and much more. Maybe it will be news to you, but everything in the computer is processed exclusively sequentially.

The question is how to get the computer to do all this - for this, instructions are needed for the computer. If we abstract, then the program code that the game developers wrote is the instructions. Now imagine that when creating a new game, you need to do it all over again, which means literally “ruining” the years of your life, but there is no need for this, because there are special software, for example, the DirectX graphics library.

Programmers will connect it, after which it will be possible to intelligently use its resources to control processes, display graphics and much more. However, some computers do not come with this library out of the box, so below we will tell you where to install DirectX. We remind you that the instruction is only suitable for the Windows operating system, under which, by the way, the library was created. By the way, it is also used in the Xbox console.

If you want to install the ninth version, then you are probably using an outdated operating system, such as Windows XP, so we strongly recommend that you upgrade to version 10, since XP maintenance has expired a few years ago, so the system is full of vulnerabilities. However, if you do not want to do this for personal reasons, then instructions will be given below.

Instructions for installing the ninth version of DirectX:

  1. This version was developed at about the same time as Windows XP, so it can no longer be found on the official website, only the tenth or eleventh, depending on the video card. Create an appropriate search query in the browser.
  2. Download not from the official resource, wait for the complete download and start the installation.
  3. Accept the agreement. Restart your computer after installation.

It is worth noting that Windows 7 supports any version of this library, with the exception of DirectX 12, which was created exclusively for Windows 10 and is an integral part of it. Installation instructions will be given below, but if you don’t want to download from the Internet, then look for a disk from the box from under the video card, there must be a library supported by your video card, or download Windows 10.

Instructions on where to install DirectX 11:

  1. Go to the official DirectX website, where you will be prompted to download their product.
  2. Wait for the download process to finish.
  3. Start the installation, agreeing to the terms of use along the way.
  4. The installer will find the best path itself, so just wait until the end and restart the computer.

We hope that after reading this article, you understand where to install DirectX and what it was created for. It is worth noting that video cards, depending on their generation, support different versions of DirectX, so even after installing version 11, only 10 can work, etc.

After the advent of very affordable computers, technologies began to develop much faster in various directions, and sometimes give rise to new ones, which is why now you can hear a lot of obscure words in ordinary conversation, for example, DirectX. Some and you may ask a question about where to install DirectX.

This article will focus exclusively on the DirectX graphics library: why is it needed, where it is used, by whom it was created, and most importantly, how to install it on your own computer. Our article is recommended exclusively for novice users of the Windows operating system, because the DirectX library works only there.

First you need to figure out what it is. For example, you start a game, and millions of bytes of information begin to be loaded into your RAM so that it is processed not only by the central processor, but also by the graphics processor. In addition, it is necessary to read keystrokes, mouse position, commands from the operating system, and much more. Maybe it will be news to you, but everything in the computer is processed exclusively sequentially.

The question is how to get the computer to do all this - for this, instructions are needed for the computer. If we abstract, then the program code that the game developers wrote is the instructions. Now imagine that when creating a new game, you need to do it all over again, which means literally “ruining” the years of your life, but there is no need for this, because there are special software, for example, the DirectX graphics library.

Programmers will connect it, after which it will be possible to intelligently use its resources to control processes, display graphics and much more. However, some computers do not come with this library out of the box, so below we will tell you where to install DirectX. We remind you that the instruction is only suitable for the Windows operating system, under which, by the way, the library was created. By the way, it is also used in the Xbox console.

If you want to install the ninth version, then you are probably using an outdated operating system, such as Windows XP, so we strongly recommend that you upgrade to version 10, since XP maintenance has expired a few years ago, so the system is full of vulnerabilities. However, if you do not want to do this for personal reasons, then instructions will be given below.

Instructions for installing the ninth version of DirectX:

  1. This version was developed at about the same time as Windows XP, so it can no longer be found on the official website, only the tenth or eleventh, depending on the video card. Create an appropriate search query in the browser.
  2. Download not from the official resource, wait for the complete download and start the installation.
  3. Accept the agreement. Restart your computer after installation.

It is worth noting that Windows 7 supports any version of this library, with the exception of DirectX 12, which was created exclusively for Windows 10 and is an integral part of it. Installation instructions will be given below, but if you don’t want to download from the Internet, then look for a disk from the box from under the video card, there must be a library supported by your video card, or download Windows 10.

Instructions on where to install DirectX 11:

  1. Go to the official DirectX website, where you will be prompted to download their product.
  2. Wait for the download process to finish.
  3. Start the installation, agreeing to the terms of use along the way.
  4. The installer will find the best path itself, so just wait until the end and restart the computer.

We hope that after reading this article, you understand where to install DirectX and what it was created for. It is worth noting that video cards, depending on their generation, support different versions of DirectX, so even after installing version 11, only 10 can work, etc.

After the advent of very affordable computers, technologies began to develop much faster in various directions, and sometimes give rise to new ones, which is why now you can hear a lot of obscure words in ordinary conversation, for example, DirectX. Some and you may ask a question about where to install DirectX.

This article will focus exclusively on the DirectX graphics library: why is it needed, where it is used, by whom it was created, and most importantly, how to install it on your own computer. Our article is recommended exclusively for novice users of the Windows operating system, because the DirectX library works only there.

First you need to figure out what it is. For example, you start a game, and millions of bytes of information begin to be loaded into your RAM so that it is processed not only by the central processor, but also by the graphics processor. In addition, it is necessary to read keystrokes, mouse position, commands from the operating system, and much more. Maybe it will be news to you, but everything in the computer is processed exclusively sequentially.

The question is how to get the computer to do all this - for this, instructions are needed for the computer. If we abstract, then the program code that the game developers wrote is the instructions. Now imagine that when creating a new game, you need to do it all over again, which means literally “ruining” the years of your life, but there is no need for this, because there are special software, for example, the DirectX graphics library.

Programmers will connect it, after which it will be possible to intelligently use its resources to control processes, display graphics and much more. However, some computers do not come with this library out of the box, so below we will tell you where to install DirectX. We remind you that the instruction is only suitable for the Windows operating system, under which, by the way, the library was created. By the way, it is also used in the Xbox console.

If you want to install the ninth version, then you are probably using an outdated operating system, such as Windows XP, so we strongly recommend that you upgrade to version 10, since XP maintenance has expired a few years ago, so the system is full of vulnerabilities. However, if you do not want to do this for personal reasons, then instructions will be given below.

Instructions for installing the ninth version of DirectX:

  1. This version was developed at about the same time as Windows XP, so it can no longer be found on the official website, only the tenth or eleventh, depending on the video card. Create an appropriate search query in the browser.
  2. Download not from the official resource, wait for the complete download and start the installation.
  3. Accept the agreement. Restart your computer after installation.

It is worth noting that Windows 7 supports any version of this library, with the exception of DirectX 12, which was created exclusively for Windows 10 and is an integral part of it. Installation instructions will be given below, but if you don’t want to download from the Internet, then look for a disk from the box from under the video card, there must be a library supported by your video card, or download Windows 10.

Instructions on where to install DirectX 11:

  1. Go to the official DirectX website, where you will be prompted to download their product.
  2. Wait for the download process to finish.
  3. Start the installation, agreeing to the terms of use along the way.
  4. The installer will find the best path itself, so just wait until the end and restart the computer.

We hope that after reading this article, you understand where to install DirectX and what it was created for. It is worth noting that video cards, depending on their generation, support different versions of DirectX, so even after installing version 11, only 10 can work, etc.

It's strange, but as soon as people don't try to download DirectX for Windows 7 or 8: they specifically look for where it can be done for free, ask for a link to a torrent, and perform other useless actions of the same nature.

In fact, to download DirectX 10, 11 or 9.0c (the latter if you have Windows XP), you just need to go to the official Microsoft website and that's it. Thus, you do not run the risk of downloading something not so friendly instead of DirectX and you can be completely sure that it will be really free and without any dubious SMS.

Where can I get DirectX on the Microsoft website and what are the nuances

So, in order to download the version of Direct X that suits you to your computer, just go to this page:. and click the "Download" button.

Please note that this will start downloading the DirectX Web Installer, which will detect your Windows version and install the correct version of the libraries, that is, it will need an Internet connection.

Also, if you need DirectX 9.0c, you can download the installation files themselves (not the Web installer) for free from this link: .

Unfortunately, I could not find DirectX 11 and 10 as separate downloads, and not a web installer, on the official website. However, according to the information on the site, if you require DirectX 11 for Windows 7, you can download the platform update from here. and by installing it, you will automatically get the latest version of DirectX.

By itself, installing Microsoft DirectX in Windows 7 and Windows 8 is a very simple process: just click "Next" and agree with everything (however, only if you downloaded from the official site, otherwise in this way you can install in addition to the necessary libraries and unnecessary programs).

First of all, about how to find out which DirectX is already installed:

  • Press the Windows + R keys on your keyboard and enter the command in the Run window dxdiag, then press Enter or OK.
  • All the necessary information will be displayed in the appeared window "DirectX Diagnostic Tool", including the installed version.

If we talk about which version is needed for your computer, then here is information about official versions and supported operating systems:

  • Windows 8.1 (and RT) and Server 2012 R2 - DirectX 11.2
  • Windows 8 (and RT) and Server 2012 - DirectX 11.1
  • Windows 7 and Server 2008 R2, Vista SP2 - DirectX 11.0
  • Windows Vista SP1 and Server 2008 - DirectX 10.1
  • Windows Vista- DirectX 10.0
  • Windows XP (SP1 and higher), Server 2003 - DirectX 9.0c

One way or another, in most cases, this information is not needed by an ordinary user whose computer is connected to the Internet: you just need to download the Web Installer, which, in turn, will already determine which version of DirectX needs to be installed and do it.

Here, it would seem, is a strange question, where to download DirectX for the new seven. And why, you ask, do this at all? After all, the DirectX 11 package is already installed by default in Windows 7 and does not require any additional download and installation. However, if you do not take a word, it can be easily checked by everyone.

We will need to check the dxdiag utility, which is also present in Windows 7. This utility is designed to diagnose DirectX and will let you know what version we have.

Click the button Start, enter a query in the search field dxdiag and press a key.

The first time you run the program, it will ask if you need to scan your drivers for digital WHQL records. It is not necessary to do this at all. Then the main program window will open. DirectX Diagnostic Tool.

And that's where our version of DirectX is. As you can see, this is DirectX 11.

By the way, you can check the box below Check digital signatures WHQL, which allows you to check the drivers if you refused to do this when the corresponding message appeared.

As a matter of fact, it is not necessary to be especially glad that Windows 7 has DirectX 11. In any case, so far there are very few games that support this technology, so DirectX 9 and 10 are still enough for most games.

And what OS support DirectX 11? Here is their list:

  • Windows 7
  • Windows Server 2008 SP2
  • Windows Vista SP2

As you can see, DirectX 11 is quite available for installation on Windows Vista with Service Pack 2. In this case, you need to download and install a number of updates, which will be done automatically thanks to the Center windows updates(Windows Update).

Here's how the comrades from Microsoft themselves advise doing it.

  1. Click the button Start.
  2. Select menu Programs and then on the link Windows Update.
  3. Click on the link Check for updates.
  4. If updates are available, click the link View available updates.
  5. Select the required update packages and click the button Install.

So where to download DirectX 11 if for some reason it is not installed?

It remains to be told where you can still download DirectX 11 for Windows as a separate file, which is sometimes necessary to update DirectX and run the latest games. You can do this on the Microsoft website. The installation file will be downloaded dxwebsetup.exe, which then downloads all the necessary files via the Internet.

Well, game developers cannot do without the DirectX SDK. To download it, click on the link in the window that opens. Get the Latest Windows SDK.

A little later, we will talk about how you can use the dxdiag utility to solve various problems that arise in the computer. Sometimes, thanks to this utility, you can even achieve a positive result 🙂

Post Views: 174

 
Articles By topic:
Receiving information What is the difference between receiving information and receiving a message
Information is information about somethingThe concept and types of information, transmission and processing, search and storage of informationExpand content Collapse content Information is, definition Information is any information received and transmitted, stored
What is a landing page and how should it look like What is the name of a landing page on the Internet
Most owners of private businesses, various services and small organizations understand how important it is to conduct business online. Creating a website and maintaining a page in social networks is now part of the marketing strategy of any company. But few companies and
How to install your template on ucoz - A program that you did not know about, we are learning to connect!
How to Install a Joomla Template - Troubleshooting - 4.5 out of 5 based on 2 votes Selecting, installing and configuring a template is one of the most important steps in creating a Joomla site. In this tutorial, we'll look at how to install a template
Faibisovich - a guide to the design of electrical networks
HANDBOOK ON THE DESIGN OF ELECTRIC NETWORKS Edited by D. L. FAIBISOVICH Edition 4, revised and supplemented Reviewer V. V. Mogirev Authors : I. G. Karapetyan (pp. 3.2, 5.1, 5.3–5.8, sec. 6, sec. 7), D. L. Faibisovi