Game Development Community

So how does C++ work nowadays?

by Sean Brockest · in Technical Issues · 02/24/2007 (6:26 pm) · 9 replies

While i still consider myself a "programmer" of sorts, i now mainly deal with scripting languages (which is nice, since torquescript is soo well designed)

However, I havn't played with C since about 1997, and was using "Borland C++ 4.0", in DOS. I downloaded the 90 day trial of Microsoft Visual Studio 2005 today, hoping that there would be at least a few similarities that would get me started. There wern't.

I also use Visual Basic. With VB there's a "project" file, that links all the other files. When i load Visual C++, i see that there's a "Load Project" Button. When i buy the torque source, is there going to be some kind of "project file" that will get me started? I hope so, cause i'm feeling kind of outdated here. Do i need to go back to school before i buy the torque source?

Thanks, and please dont make fun of me.

#1
02/24/2007 (6:27 pm)
Reason i ask is because i'm so impressed with the demo, i'm pretty sure there arn't going to be many edit's i need to make in the sources. I've found some free source resources i will need though, so i'm sure i'l need to make at least a few edits, then recompile. It's that last "recompile" i cant figure out, unless i can load the entire source as a project.
#2
02/24/2007 (6:48 pm)
There is a project file included for visual studio 2005 express, and a few others.
If you've had experience in C, you should pick it back up in no time.
#3
02/25/2007 (9:24 am)
So i should theoretically be able to use VC++, open the project file, press "build" or "compile" or something, and get a new copy of tge.exe?

I hope it's that easy once i've bought it :)
#4
02/25/2007 (9:29 am)
Should be no problem.

edit: well of course there will be a few details, like release build vs debug build, and how to launch the app from within VS, etc, but they're minor and you definitely shouldn't hesitate if all you want to do is basic recompiles and simple edits. nothing like having to hunt down libraries on the web or junk like that.
#5
02/25/2007 (1:24 pm)
If youve only looked at console apps in c++, you might want to look for a tutorial or primer on win32 programming. in general, you should learn how visual c++ creates a window. in particular, you should get a grasp for winMain(), creating a window, and handling windows messages. once you understand that, it's just regular c++ from there.
#6
02/26/2007 (8:42 pm)
What's this SDK that i'm supposed to get in addition to Visual C++ express? If i search SDK at microsoft's site, i get bombarded by them, and i dont know which one i'm supposed to have.
#7
02/26/2007 (9:17 pm)
VS express should be sufficient.

i advise against installing the Windows Platform SDK unless you have an explicit need to.
#8
02/28/2007 (6:59 pm)
@Sean - On the main document for TGE (it's available after you purchase) there are some very simple instructions for opening a solution file within Torque to load up the entire engine and compile. I found out the other night if you load just the torque demo project it won't compile because it needs some other projects within the entire solution.
#9
02/28/2007 (7:24 pm)
Definitely read the instructions, but the specific SDK you will want is the Direct X SDK

Google this: Direct X SDK October 2006

That's the SDK you'll most likely want.