Setting up Microsoft Visual C++ 2008 Express
by Steven Hine · in Torque Game Builder · 06/23/2008 (7:22 pm) · 27 replies
Just thought I'd update this process. I have compiled info from other threads.
1. Download and install Visual Studio C++ 2008 from http://www.microsoft.com/express/download/
2. download and install the Windows SDK for Windows Server 2008 and .NET Framework 3.5
http://www.microsoft.com/downloads/details.aspx?FamilyId=E6E1C3DF-A74F-4207-8586-711EBE331CDC&displaylang=en
3. follow the steps on this page for setting up the directories.
http://tdn.garagegames.com/wiki/T2D/TGBTutorials/WindowsSystemSetup
You should have set up 3 directories and the PATH variable. PATH is set to the same folder as the first directory. The above link shows a different directory.
4. Navigate to your TGB folder and find the engine\source\platformWin32\platformWin32.h file. In the .h file change the _WIN32_WINNT 0x0400 to 0x0501 as per this tread:
http://www.garagegames.com/mg/forums/result.thread.php?qt=74770
5. Open up Visual C++ 2008 Express and goto File->Open->Project/Solution. Navigate to TGB's engine\compilers\VisualStudio.net and open the T2D SDK.sln (Don't open the 2005 version I couldn't get it to work)
6. Goto Build->Build Solution or F7. and in a short while you should have an error free build of TGB.
1. Download and install Visual Studio C++ 2008 from http://www.microsoft.com/express/download/
2. download and install the Windows SDK for Windows Server 2008 and .NET Framework 3.5
http://www.microsoft.com/downloads/details.aspx?FamilyId=E6E1C3DF-A74F-4207-8586-711EBE331CDC&displaylang=en
3. follow the steps on this page for setting up the directories.
http://tdn.garagegames.com/wiki/T2D/TGBTutorials/WindowsSystemSetup
You should have set up 3 directories and the PATH variable. PATH is set to the same folder as the first directory. The above link shows a different directory.
4. Navigate to your TGB folder and find the engine\source\platformWin32\platformWin32.h file. In the .h file change the _WIN32_WINNT 0x0400 to 0x0501 as per this tread:
http://www.garagegames.com/mg/forums/result.thread.php?qt=74770
5. Open up Visual C++ 2008 Express and goto File->Open->Project/Solution. Navigate to TGB's engine\compilers\VisualStudio.net and open the T2D SDK.sln (Don't open the 2005 version I couldn't get it to work)
6. Goto Build->Build Solution or F7. and in a short while you should have an error free build of TGB.
About the author
#22
I'm just guessing that's a possible cause of your issue.
12/18/2008 (2:03 am)
If you have everything saved/installed in c:\program files, you might have troubles updating files. I had issues just running TGB and Torsion and creating scripts when I had things saved there. Moved (reinstalled) them elsewhere and all went smoothly. I'm just guessing that's a possible cause of your issue.
#23
Here is the error occured in my project..
========== Rebuild All: 6 succeeded, 1 failed, 1 skipped ==========

In solution explorer, it shows "Solution 'T2D SDK' (8 projects)" under this...
glu2d3d
ljpeg
lpng
lungif
opengl2d3d
TGBGame
TorqueGameBuilder
zlib
Both in TGBGame and TorqueGameBuilder contains same things, but i have seen in T2D/TGBTutorials it shows T2D instead of TGBGame & TorqueGameBuilder. My Vcproj directory is ..\GarageGames\TorqueGameBuilder-1.7.4\engine\compilers\VisualStudio.net\T2D SDK.sln.
Could you please direct me towards that?..
12/18/2008 (3:49 am)
Hi Shaz, i installed VC++ and TGB in c:\program files\...Here is the error occured in my project..
========== Rebuild All: 6 succeeded, 1 failed, 1 skipped ==========

In solution explorer, it shows "Solution 'T2D SDK' (8 projects)" under this...
glu2d3d
ljpeg
lpng
lungif
opengl2d3d
TGBGame
TorqueGameBuilder
zlib
Both in TGBGame and TorqueGameBuilder contains same things, but i have seen in T2D/TGBTutorials it shows T2D instead of TGBGame & TorqueGameBuilder. My Vcproj directory is ..\GarageGames\TorqueGameBuilder-1.7.4\engine\compilers\VisualStudio.net\T2D SDK.sln.
Could you please direct me towards that?..
#24
@ John
Because you are using Vista, VC++ will have to have permission to work in the project folder. Try giving it permission.
as for backing up the files when you open the project, it's not really necessary. You could do it to make sure a copy of the origanal files are saved.
12/19/2008 (6:58 pm)
It seems to me that all these work arounds for different errors are not really the answer to a good install and compile of TGB. Are there any employees that could tell us how they have their development environment set up?@ John
Because you are using Vista, VC++ will have to have permission to work in the project folder. Try giving it permission.
as for backing up the files when you open the project, it's not really necessary. You could do it to make sure a copy of the origanal files are saved.
#25
i give permission to project folder, no errors occured. But in the tgb folder TorqueGameBuilder_DEBUG.exe not found after i build the solution. Where can i find the DEBUG version of both TorqueGameBuilder & TGB Game? and how can i set the output directories for these?..
Thank You.
12/23/2008 (10:00 pm)
Hi Steven..i give permission to project folder, no errors occured. But in the tgb folder TorqueGameBuilder_DEBUG.exe not found after i build the solution. Where can i find the DEBUG version of both TorqueGameBuilder & TGB Game? and how can i set the output directories for these?..
Thank You.
#26
hope this helps.
12/24/2008 (9:10 pm)
Hey John... did you try a search for the debug version of exe? It should appear in the folder that says \TGBgameData\T2DProject folder.hope this helps.
#27
11/22/2009 (5:17 am)
Ok, the procedure worked like a charm. Thanks so much!
Torque Owner Raja John
But when i open the T2d SDK.sln it ask "Do you want backup this file". i am in user account of Vista Business edition, if any problem made while work in user account?
Error Screenshot
After i select the ignore option it ask destination folder to backup, but the the projects shows like this..
Is admin account need to compile TGB in VC++?
Thanks again