vc++
by Raja John · in Torque Game Builder · 05/16/2009 (4:34 am) · 1 replies
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 thread:
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.
~engine\source\platformWin32\platformWin32.h file. In the .h file change the _WIN32_WINNT 0x0400 to 0x0501
Setting up Microsoft SDK Directories..
C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include
C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib
Setting environment Variables..
~MyComputer/Properties/Advanced/Environment Variables/.. Find path and add this
;C:\Program Files\Microsoft Plaftform SDK\Bin
Then open the Project..
For each project in the solution, go to properties/Configuration Properties/C\c++/Language and change "treat wchar_t as built-in type" from "Yes" to "No(/Zc:wchar_t-)"
Change T2D SDK.rc line: #include "afxres.h" to #include "windows.h" (if you are getting the afxres.h error)
Build Solution.
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 thread:
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.
~engine\source\platformWin32\platformWin32.h file. In the .h file change the _WIN32_WINNT 0x0400 to 0x0501
Setting up Microsoft SDK Directories..
C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include
C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib
Setting environment Variables..
~MyComputer/Properties/Advanced/Environment Variables/.. Find path and add this
;C:\Program Files\Microsoft Plaftform SDK\Bin
Then open the Project..
For each project in the solution, go to properties/Configuration Properties/C\c++/Language and change "treat wchar_t as built-in type" from "Yes" to "No(/Zc:wchar_t-)"
Change T2D SDK.rc line: #include "afxres.h" to #include "windows.h" (if you are getting the afxres.h error)
Build Solution.
About the author
Torque 3D Owner Lance Hampton