Torque game engine QQ group member article: (← blur cat → QQ: 613101) NTOE: Maybe you know how to compile torque by vs2003 or vc6, but what about vs2005, The following is the 'how'.
Torque: http://www.gamaura.com/soft/2006/200603/12.htmlvs2005: EMULE TEAM Suite Edition
Download Yesterday to a TORQUE, a source code. This I like :) Hurry down, compile with Visual Studio 2005. First, use the VS2005 to open Torque / VC7 / Torque SDK.sln, upgrade the solution according to the prompt, and then compile. The following is a mistake.
1. CHAR * and Const Char * Conversion Problem This problem occurs in the DSTRSTR function: char * DSTRSTR (const char * str1, const char * str2) {Return str2;} However, strstr returns Const Char *. The compiler does not allow char * implicit to Const char *. Therefore, forced conversion.
2, TYPEDEF problem error file: Winnt.h error row: typedef void * Pointer_64 pvoid64; Solution: This is this, Pointer_64 is a macro, role in 64-bit compile, it is included in the basesd.h under the SDK directory. Unfortunately, Torque took a basetsd.h himself, and did not define Pointer_64, resulting in an error. Rename or delete the file.
3, missing resource.h file error file: resource.rc Tip: Missing resource.h file resolution: Copy a resource.h to the VC7 directory in the VC6 directory.
4, operator overload problem error file: DTSMAMATRIX.H in DTSMatrix.h] Template
5, a small problem is a defined location is wrong, and the official is solved :)
Now, through the above steps, although Warning is, it can be compiled :) Let me feel weird, I don't know if this is upgraded from the VC7 to VC8. Also look high.
Thank you very much during the tired, Nanou, very grateful :)
Date: 2006.06.16 from: withyourk