Interactive 3D Text Sample
This topic contains the following sections.
- Description
- Requirements
- Additional Requirements
- Downloading the Sample
- Installation Instructions
- Configuring without Visual Studio
- Configuring Visual Studio 2008
- Building the Sample
- Building the Sample Using the Command Prompt
- Building the Sample Using Visual Studio 2008 (Preferred Method)
Description
This sample creates three dimensional, editable text, as shown in the following illustration.
Requirements
Minimum supported client | Windows 7 or Windows Vista with Service Pack 2 (SP2) and Platform Update for Windows Vista |
Minimum supported server | Windows Server 2008 R2 or Windows Server 2008 with Service Pack 2 (SP2) and Platform Update for Windows Server 2008 |
Windows SDK | Windows Software Development Kit (SDK) for Windows 7 |
Additional Requirements
Microsoft DirectX SDK (March 2009 or later)
Downloading the Sample
This sample is available in the following locations.
Location | Path/URL |
---|---|
Windows SDK | \Program Files\Microsoft SDKs\Windows\v7.0\Samples\Multimedia\Direct2D\Interactive3dTextSample |
Code Gallery | Download from MSDN Code Gallery |
Installation Instructions
After installing the DirectX SDK, you must configure your system to use the executables and include files provided by the DirectX SDK.
Configuring without Visual Studio
- Open a Windows SDK command shell.
- Type "<drive>:\Program Files\Microsoft DirectX SDK <version>\Utilities\bin\dx_setenv.cmd" (For 64-bit versions of Windows, type "<drive>:\Program Files (x86)\Microsoft DirectX SDK <version>\Utilities\bin\dx_setenv.cmd") where <drive> is the drive to which the DirectX SDK was installed and version is the version you downloaded. For example, "C:\Program Files\Microsoft DirectX SDK (March 2009)\Utilities\bin\dx_setenv.cmd" You must perform this step each type you compile the sample.
- To compile the sample, type
vcbuild /u Interactive3dTextSample.sln
.
Configuring Visual Studio 2008
You must configure Visual Studio for each platform (Win32 or x64) you want to build against.
For Building Against the Win32 Platform
- Launch Visual Studio 2008.
- Open the Tools menu and select Options…. The Options dialog box appears.
- In the left pane of the Options dialog box, expand the Projects and Solutions node.
- Under Projects and Solutions, select VC++ Directories.
- In the right pane, set the Platform drop-down list box to "Win32" and the Show directories for drop-down list box to "Executable files".
- At the bottom of the list of executable file directories, create a new entry for the DirectX SDK:
- For machines running 32-bit versions of Windows, add the following path: <drive>:\Program Files\Microsoft DirectX SDK <version>\Utilities\bin\x86 (If there was already such an entry, move it to the bottom of the list.)
- For machines running 64-bit versions of Windows, add the following path: <drive>:\Program Files (x86)\Microsoft DirectX SDK <version>\Utilities\bin\x86 (If there was already such an entry, move it to the bottom of the list.)
- Set the Show directories for drop-down list box to "Include" files.
- At the bottom of the list of directories, create a new entry for the DirectX SDK:
- For machines running 32-bit versions of Windows, add the following path: <drive>:\Program Files\Microsoft DirectX SDK <version>\Include (If there was already such an entry, move it to the bottom of the list.)
- For machines running 64-bit versions of Windows, add the following path: <drive>:\Program Files (x86)\Microsoft DirectX SDK <version>\Include (If there was already such an entry, move it to the bottom of the list.)
- Set the Show directories for drop-down list box to "Library" files.
- At the bottom of the list of directories, create a new entry for the DirectX SDK:
- For machines running 32-bit versions of Windows, add the following path: <drive>:\Program Files\Microsoft DirectX SDK <version>\Lib\x86 (If there was already such an entry, move it to the bottom of the list.)
- For machines running 64-bit versions of Windows, add the following path: <drive>:\Program Files (x86)\Microsoft DirectX SDK <version>\Lib\x86 (If there was already such an entry, move it to the bottom of the list.)
- Click OK.
For Building Against the x64 Platform
- Launch Visual Studio 2008.
- Open the Tools menu and select Options…. The Options dialog box appears.
- In the left pane of the Options dialog box, expand the Projects and Solutions node.
- Under Projects and Solutions, select "VC++ Directories".
- In the right pane, set the Platform drop-down list box to "x64" and the Show directories for drop-down list box to "Executable" files.
- At the bottom of the list of executable file directories, create a new entry for the DirectX SDK:
- For machines running 32-bit versions of Windows, add the following path: <drive>:\Program Files\Microsoft DirectX SDK <version>\Utilities\bin\x86 (If there was already such an entry, move it to the bottom of the list.)
- For machines running 64-bit versions of Windows, add the following path: <drive>:\Program Files (x86)\Microsoft DirectX SDK <version>\Utilities\bin\x64 (If there was already such an entry, move it to the bottom of the list.)
- Set the Show directories for drop-down list box to "Include" files.
- At the bottom of the list of directories, create a new entry for the DirectX SDK:
- For machines running 32-bit versions of Windows, add the following path: <drive>:\Program Files\Microsoft DirectX SDK <version>\Include (If there was already such an entry, move it to the bottom of the list.)
- For machines running 64-bit versions of Windows, add the following path: <drive>:\Program Files (x86)\Microsoft DirectX SDK <version>\Include (If there was already such an entry, move it to the bottom of the list.)
- Set the Show directories for drop-down list box to "Library" files.
- At the bottom of the list of directories, create a new entry for the DirectX SDK:
- For machines running 32-bit versions of Windows, add the following path: <drive>:\Program Files\Microsoft DirectX SDK <version>\Lib\x64 (If there was already such an entry, move it to the bottom of the list.)
- For machines running 64-bit versions of Windows, add the following path: <drive>:\Program Files (x86)\Microsoft DirectX SDK <version>\Lib\x64 (If there was already such an entry, move it to the bottom of the list.)
- Click OK.
Building the Sample
Building the Sample Using the Command Prompt
- Open the Command Prompt window and run the dx_setenv.cmd (see the Configuring without Visual Studio section for more information.)
- Navigate to the sample directory.
- Type
vcbuild /u Interactive3dTextSample.sln
.
Building the Sample Using Visual Studio 2008 (Preferred Method)
- Open Windows Explorer and navigate to the sample directory.
- Double-click the icon for the .sln (solution) file to open the file in Visual Studio.
- In the Build menu, select Build Solution. The application will be built in the default \Debug or \Release directory.
Send comments about this topic to Microsoft
Build date: 1/22/2012