Tips and Tricks Using Managed Code |
This topic discusses the basics of how to install and use Microsoft DirectX 9.0 for Managed Code and documentation. The following sections are included.
Install the latest Microsoft .NET Framework runtime from How to Get the .NET Framework . This installs the Framework on your local computer, which includes the .NET runtime. The .NET runtime is a set of dynamic-link libraries (DLLs) that managed code applications require. You can install the full software development kit (SDK), but only the runtime is required.
Download the DirectX 9.0 SDK from the DirectX Web site, or from MSDN DirectX Downloads . The SDK includes the set of DirectX DLLs that are required to run DirectX applications.
Pre-tested code for sample applications can be found at:
(SDK root)\Samples\Managed\
The sample applications should be built with Microsoft Visual Studio .NET 2003.
For each DirectX technology you will find the following folder structure.
DirectX 9.0 for Managed Code does not support class inheritance in applications. Inheriting from DirectX 9.0 for Managed Code classes is not recommended and the resulting behavior is undefined.
Although you may discover that certain inherited classes work with this version of DirectX 9.0 for Managed Code, such inheritance may not work in future versions.
From the Visual Studio .NET 2003 Integrated Development Environment (IDE):
When the SDK has been loaded using the above procedure, documentation will be readable from within Visual Studio .NET 2003. From the Visual Studio Help menu, select Contents to open a table of contents, Index to search by alphabetical words, or Search to do a text search in the documentation, as shown in the following.
From within managed code, you can also view detailed documentation and syntax by clicking anywhere on the name of a class, structure, member, property, or field and then pressing F1.
Installing DirectX documentation from both the DirectX SDK and MSDN Library can result in duplicate topics in Visual Studio .NET 2003. If this occurs, take the following steps to uninstall the DirectX documentation from the SDK.
Stand-alone developer runtime installers install only the DirectX developer and debug runtime for redistribution purposes. These installers are located at:
(SDK root)\Developer Runtime\Managed DirectX\
DirectX 9.0 for Managed Code includes a full set of DLLs for redistribution. To install the full set, perform the following steps.
DXSetup.exe /InstallManagedDX
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center