1.0:Visual Studio Configuration
From DXFWiki
A few steps are required to ensure the compiler will build DXFramework correctly.
Contents |
SDK Include and Lib Directories
After installing Visual Studio, the DirectX SDK, and the Windows SDK, open Visual Studio and configure it with the appropriate additional include and library directories. There are two sets of instructions: follow the first set if you are configuring Visual Studio for a particular computer (i.e. your personal cmoputer), follow the second set if you are configuring a particular Visual Studio solution for use with the framework (i.e. using the framework on CAEN machines, as well as your personal computer, etc.).
To configure Visual Studio on one particular computer
- Visit the options dialog: Tools -> Options...
- Select Projects and Solutions, expand, select VC++ Directories
- Select "Show directories for: Include files"
- Add the following directories if they do not exist (Do not cut and paste, browse using the "..." button as your exact path may vary):
-
C:\Program Files\Microsoft DirectX SDK (June 2006)\Include -
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
-
- Ensure the two directories are at the top of the directory list.
- Add the following directories if they do not exist (Do not cut and paste, browse using the "..." button as your exact path may vary):
- Select "Show directories for: Library files"
- Add the following directories if they do not exist (Do not cut and paste, browse using the "..." button as your exact path may vary):
-
C:\Program Files (x86)\Microsoft DirectX SDK (June 2006)\Lib\x86 -
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
-
- Ensure the two directories are at the top of the directory list.
- Add the following directories if they do not exist (Do not cut and paste, browse using the "..." button as your exact path may vary):
To configure a Visual Studio solution to work with the framework across all computers
- Add the additional include directories
- Open the Property Pages for one of the projects in the solution
- Select Configuration Properties -> C/C++ -> General
- Under "Additional Include Directories", add the two include directories from the above set of instructions
- After adding them for one project, you must add them for all of the other projects in the solution
- You can either repeat the above process, or copy and paste the directory paths to each of the other projects
- Add the additional library directories
- Open the Property Pages for one of the projects in the solution (but not the dxfengine or dxut projects)
- Select Configuration Properties -> Linker -> General
- Under "Additional Library Directories", add the two library directories from the above set of instructions
- After adding them for one project, you must add them for all of the other projects in the solution
- You can either repeat the above process, or copy and paste the directory paths to each of the other projects
Visual C++ Express Issues
- In order to get DXFramework to build under Visual C++ Express, you must go through and remove all .rc files from the projects.
- The four projects that have .rc files are:
- demo
- dxpong
- template
- worldmap
- Do not actually delete the files, just remove them from the projects from within Visual Studio.
- When you create a new, blank project, you'll need to remove the .rc file from it as well.
What does this do?
You will not have control over the icon that your executable uses.
