Jonathan McIntyre
- Install the DirectX 2010 SDK downloaded from Microsoft’s website.
- Open any C++ project in Visual Studio 2010
Note: Instructions tested using the template provided by AGK, but any C++ project will work, including a newly created empty project - Inside Visual Studio open the Property Manager under View -> Other Windows -> Property Manager
- In the Property Manager window expand the property listing for the current project.
- Two subfolders should appear (Debug | Win32 and Release | Win32).
Select and expand either one of these folders.It does not matter which one. - A list of property sheets should now be displayed. Select the property sheet "Microsoft.Cpp.Win32.user"
- Right click this sheet and select Properties
- In the dialogue box that appears ("Microsoft.Cpp.Win32.user Property Pages") navigate to Common Properties -> VC++ Directories
- Under VC++ Directories, select Include Directories, click the drop-down menu arrow, and then select edit from the menu.
- In the Include Directories dialogue box that appears, select the entry for the DirectX 2007 SDK and then modify this to point to the Include directory in the install directory of the new DirectX 2010 SDK.
Ex: "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include" - Click OK to save the new settings and close the dialogue box
- Next, under VC++ Directories, select Library Directories and repeat the previous two steps (Steps 10 and 11) for the "Lib\x86" directory inside the install directory of theDirectX SDK 2010 directory.
Ex: "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x86" - Under VC++ Directories, click Apply and then Okay to apply the settings and close the "Microsoft.Cpp.Win32.user Property Pages" dialogue box
- Next, right click the "Microsoft.Cpp.Win32.user" property sheet again, and select the Save option from the drop-down menu
IMPORTANT: Property Sheets are not stored as a part of the project and saving the project will not save the property sheets!
The property sheets must be saved separately by using the options provided in the Property Manager! - Once the property sheet has been saved, the settings provided by this sheet should be saved and applied for the entire system.Settings stored in this sheet are inherited by default in all C++ projects.
- With the new settings saved and applied, change to the Solution Explorer window, and select the currently open project.
- Right click on this project and then select Properties from the drop-down menu.
Note: Be sure that the project is selected, and not the entire solution (The solution is the highest level in the tree). - Under the Property Pages dialogue box that appears for the project, navigate to Configuration Properties -> VC++ Directories.
- Under VC++ directories, view the settings for the Include Directories and Library Directories and verify that they now reflect the modified settings in the "Microsoft.Cpp.Win32.user" property sheet inside the “Inherited values”box.
- Verify that these settings are the same for all possible project configurations:
Configuration: All Configurations, Debug, and Release - Assuming the new settings are correct, click OK to close the Property Pages dialogue box for the active project.
Note: If the settings did not appear to be correct, ensure that "Microsoft.Cpp.Win32.user" property sheet was modified and saved correctly. - Next, close the current solution out completely (File -> Close Solution), and then exit Visual Studio entirely (File -> Exit).
- With Visual Studio closed, re-open Visual Studio 2010 using a different C++ project than before.
Note: This can be any C++ project besides the one that was just closed out of. - With the new project open, repeat the steps 16 through 20 to verify that the project has correctly inherited the settings from the "Microsoft.Cpp.Win32.user" property sheet.
- Assuming all of the settings in the new project arecorrect, close the active solution and then reopen the previous (first) project.
- With the first project open again, re-verify (Steps 16 through 20) the inherited VC++ Directory settings.
- Assuming that all steps up to this point have been performed correctly and all of the settings are correct the AGK should now be usable without any modifications.
- Next verify that the AGK is working correctly in the following steps.
- Navigate to "C:\Program Files (x86)\The Game Creators\AGKTrial\IDE\templates" and select the "template_vs10" directory.
- With the "template_vs10" directory selected, right click on the directory and select Copy from the drop-down menu, and then right click inside the"templates" folder and select Paste in the drop-down menu.
- This should have created a new copy of the "template_vs10" directory, which is an AGK template.
- Enter the new template directory that was just created and copy thenew“template.cpp” test file that was provided alongside these instructionsover theold“template.cpp”file that already exists in the template directory.
- Double-click the “template.sln” file to open the template's solution in Visual Studio 2010.
- With Visual Studio 2010 open, ensure that the active configuration is set to Release, and then click the green (Start Debugging) arrow in the toolbar.
Note: Due to oddities with the AGK the project WILL NOT execute correctly if the active configuration is set to Debug, to change the active configuration select the drop-down arrow in the box containingthe word "Debug" or "Release" and select "Release" from the drop-down menu. - When asked whether or not to build the project, select Yes.
- When asked whether or not to continue executing the project without debug information, select Yes.
- Assuming the project has executed correctly, a window will open with the title "AGK Test Project", the text "AGK Test Successful!" will appear in the window, and the background color of thewindow will periodically blink to a random different color.
- If the project has executed correctly then everything is now configured properly and we may now use the AGK on this class computer.
- CELEBRATE!