Game Development Community

Need help building TGB

by Jordan Jeremy Wallet · in Torque Game Builder · 04/26/2010 (4:44 am) · 4 replies

I don't really know C++, but I stuck VMPlayer and its requisite files into the source code, and tried to build it with VC++2005 Express. Thing is, it game me some errors that don't seem to have anything to do with my changes. :[

[code]popupMenuWin32.cc
..\..\source\platformWin32\menus\popupMenuWin32.cc(216) : error C2065: 'MIIM_STRING' : undeclared identifier
winOGLVideo.cc
..\..\source\platformWin32\winOGLVideo.cc(858) : error C2065: 'AW_BLEND' : undeclared identifier
..\..\source\platformWin32\winOGLVideo.cc(858) : error C3861: 'AnimateWindow': identifier not found
cardProfile.cpp
..\..\source\platformWin32\cardProfile.cpp(14) : error C3861: 'EnumDisplayDevices': identifier not found
..\..\source\platformWin32\cardProfile.cpp(14) : fatal error C1903: unable to recover from previous error(s); stopping compilation

I haven't touched any files outside of /audio/ other than platformAudio.h, so I'm sure this problem must be pretty common. What should I do?

About the author

J. J. Wallet is a 20-something polymath with an unhealthy obsession with game development and a relatively bare resumé. He's taken the insane option of dropping out of school to pursue a career in games immediately.


#1
04/26/2010 (5:20 am)
Assuming you've got all the OS SDKs installed, go into "platformWin32.h" and search for "_WIN32_WINNT". Change it to equal "0x0501" and recompile.
#2
04/26/2010 (5:40 am)
That did the trick! Thanks so much. Any reason my computer is different from the default?
#3
04/26/2010 (5:43 am)
No, that should have been the default setting a long time ago. I believe it has been changed for the next release TGB 1.7.5

Note that this fix has been posted many times on the forums.
#4
04/26/2010 (7:22 am)
Should be a sticky...