Configuration of the most simplified DirectX 11 Development Environment vs2010

Source: Internet
Author: User
Tags visual studio 2010

Reprinted from: http://blog.csdn.net/zhmxy555/article/details/7672101

 

Before writing DirectX 11-based applications, we certainly need to add the DirectX SDK function library support to the IDE so that the compiler can compile our code, understand the functions in directxsdk that we call in the code. Otherwise, the compiler will report undefined XXX and other errors, because if we do not configure directxsdk, the compiler will not be smart enough to understand these functions.

 

Previously, simple ink published an article titled "quick configuration of DirectX Development Environment". In fact, that article describes the configuration of DirectX SDK as complex, the configuration process is very simple because it is for Versions later than release a studio 2008.

<Step 1> download and install the DirectX SDK

Download the latest DirectX SDK from Microsoft's official website. We will select the latest directxsdk_june10 (as of January 10, June 16, 2012 ).

Is it a http://www.microsoft.com/en-us/download/details.aspx? Id = 6812

After the download is complete, an installation package named dxsdk_jun10.exe must be installed. Then, double-click the file to install the package.

The installation directory is set to D: \ Program Files \ Microsoft DirectX SDK (June 2010). You can set it as needed, but remember the directory. This installation directory will be used in the next step.

 

 

 

<Step 2> Configure

Open Visual Studio (Visual Studio 2010 is used in simple ink), and click tools (shortcut key Alt + T)> options (shortcut key O) -> [project and solution]-> [VC ++ Directory]

(The English version is [tools]-> [Option]-> [projects and solutions]-> [VC ++ directories ])

The following window is displayed:

You only need to add related directories in the "include directory" and "library directory". The simple ink marks the directory in the figure with a box. The specific steps for adding the directory are as follows:

 

<1> Add the path of the include folder under the installed DirectX SDK directory to the [include directory]. Based on the installation path of the DirectX SDK, add D: \ ProgramFiles \ Microsoft DirectX SDK (Jun 2010) \ include

If the installation path is different, you must modify it as follows: 

<2> in the [library Directory], add the path of the Lib folder under the installed DirectX SDK directory. Based on the installation path of the DirectX SDK, add D: \ Program Files \ microsoftdirectx SDK (June 2010) \ Lib \ x86

If the installation path is different, you still need to modify it as follows:

 

After these two directories are added, the configuration of the DirectX development environment is successful, and we can run the DirectX-based application program in Visual Studio.

 

PS: If the second step is executed, the "VC ++ directory editing function has been rejected" may occur. Instead of using the above scheme to access VC ++ directories, we can switch to the following scheme:

 

Run <View> -- <Property Manager> in the menu bar. In the displayed "Property Manager" workspace, click Project> debug | Win32> Microsoft. CPP. win32.userdirectories to enable VC ++ Directories

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.