| Installing Visual C++ 2005 Express |
|
|
| Written by Markus Ewald | |||
| Wednesday, May 16 2007 20:11 | |||
|
This article is outdated! This article will explain how you can install the freely available Visual C++ 2005 Express Edition together with the Windows SDK required to create Windows applications and use most of the code available on the 'net. If you're interested in doing Windows game development in C++, Visual C++ 2005 Express is a great choice because it combines a world class IDE with the optimizing version of the Microsoft C/C++ Compiler. If you're concerned with standards compliance, rest assured that Microsoft's compiler is among the best. History Lesson: Microsoft and the C++ Standard The idea that Microsoft compilers have poor standards compliance is rooted in Visual C++ 6.0, which was shipped before the C++ '98 Standard had been completed but lived well into the C++ '98 era. Visual C++ 2005 doesn't have such problems at all and is actually one of the best - if not the best - compiler in terms of ISO/ANSI C++ standards compliance. With Herb Sutter, Microsoft has also won a famous member of the C++ standards committee for its own development team (see ISO/ANSI C++ Standards Committee Secretary Herb Sutter Joins Microsoft's Developer Division).
The only obstacle for game programmers is that the Express Edition
of Visual C++ 2005 doesn't include the Platform SDK,
Microsoft's collection of headers and libraries for windows development,
including the all-time famous Required FilesI'll start by listing what files you're going to need so you can download everything in advance:
Visual C++ 2005 Express Edition
Visual C++ 2005 Express Service Pack 1
Visual C++ 2005 Express SP1 Update for Windows Vista
Microsoft Windows SDK That's everything you'll need to set up your C++ game development environment. Continue on the next page! 1. Install Visual C++ 2005 ExpressThis is actually pretty simple. Just run the installer you downloaded (if you want to save some time and space, deselect the MSDN Library and SQL Server Express. You can view MSDN online and install SQL Server Express when you actually need it). 2. Install Visual C++ 2005 Express SP1Run the SP1 executable and wait for half an hour (no joke!) 3. Install Visual C++ 2005 SP1 Update for Windows Vista...if you're running Windows Vista. Otherwise, skip to step 4. 4. Install the Platform SDK
I'm going to assume you downloaded the ISO variant of the
Platform SDK. 4.1. Mount the .img file in Daemon ToolsChances are you already have Daemon Tools installed and know what to do. If not, download Daemon Tools from www.daemon-tools.cc, install and click on the tray icon (red with a lightning bolt in the middle), then choose Mount Image and browse for the .img file you downloaded. 4.2. Run Setup.exe
4.3. Install!If you want to speed up the process a bit, choose "Custom" and deselect everything except for the Microsoft Windows Core SDK:
The final step will be to configure Visual C++ 2005 Express to use the files from the platform SDK. Please continue on the next page! 5. Configure Visual C++ 2005 ExpressYou can find the same instructions being given on the Microsoft site here: Using Visual C++ 2005 Express with the Microsoft Platform SDK. This article has more fancy screen shots, though :p 5.1. Open the Visual C++ Directory SettingsYou can find these settings in the Visual C++ Options dialog that is opened by clicking on Options in the Extras menu:
Navigate to Projects and Solutions in the category list to the left and locate the VC++ Directories entry 5.2. Update your Include DirectoriesUnless you changed the installation directory, the Platform SDK will have been installed to $(ProgramFiles)\Microsoft Platform SDK for Windows Server 2003 R2. So we need to point Visual C++ to this directory. Select the "Include files" in the combo box to the right and replace the $(VCInstallDir)PlatformSDK\include entry with $(ProgramFiles)\Microsoft Platform SDK for Windows Server 2003 R2\Include.
5.3. Update your Library DirectoriesSelect the "Library files" in the combo box to the right and replace the $(VCInstallDir)PlatformSDK\lib entry with $(ProgramFiles)\Microsoft Platform SDK for Windows Server 2003 R2\Lib.
That's it!
|

