Hi,
I've been trying to make a mod for Quake 3, using Greg Dolley's C++ .NET port of the source code. However, I'm having some problems, which I don't get in my regular (fully patched) install of...
Type: Posts; User: bengreenwood
Hi,
I've been trying to make a mod for Quake 3, using Greg Dolley's C++ .NET port of the source code. However, I'm having some problems, which I don't get in my regular (fully patched) install of...
Thanks for the reply. I'll try and do that.
It seems like this could have something to do with some libraries or dlls or something that have been changed since I originally loaded up the source...
Hi,
I recently downloaded Greg Dolley's .NET port of the Quake 3 source code, and I've been working on making a mod with it. I added in some of my own code, and it was working fine, but then I...
Hi,
My problem relates to the following code, which is part of a function in a chat bot program. The function takes the argument read_wd, which is a std::string. Basically this is just a word...
Yeah, I've been using that for a while and it seems to work. Still, is it better to do it the second way? Or doesn't it really matter? I have occasionally noticed the text screwing up in the game-...
Well to be honest, I don't know. Right now I do it via something like the following, which is one of the "make c string" functions I mentioned.
const char *get_th_choice_cstr() { return...
I'm returning a c string because basically, I'm writing a mod for the game Half-Life. The only way you can print messages to the screen in Half-Life is via c_strings (Half-Life is written in C++ but...
Hi,
I have a function in a program that's something like the following. When I try to output what it returns, however, it doesn't print anything on the screen. The following isn't exactly what I'm...
Hi,
I've been making a modification for a game called Half-Life. Basically it produces a dll that alters how the game runs. Anyway, my modification reads from some text files, and it does so by...
Thanks for the responses, guys. I'm considering using an unsigned short int, just as a learning exercise more than anything.
So if I do this, I'll use a macro to get the value from where it's...
Hi,
Say you have a program that stores a bunch of time values, which are in seconds. They can either be to the nearest full second, or can end in .5. So for example, the first few would be: 0,...
Thanks for the help, guys. Sean, by web-dev, do you mean Java? Or are there other languages I should try messing around with? Actually I wouldn't mind making some games people could play online....
Hi,
I've been programming C++ in my spare time for the last year or two. I finished a Psychology degree in May, and since then, I've been spending a good 6 or 7 hours a day, 6 days a week coding....
lol. That was a pretty stupid error. Thanks.
Any ideas on how I could improve the program generally? Is using getline/ c strings ok for this? Or should I be doing more with std::string?
Thanks...
Hi,
I've written this simple program to get some data from a text file. It reads in data to a string, an int array, another int array, and a double array. The reason there are 2 int arrays is...
Hi,
Say you're writing a game that needs to store a load of pre-written text comments, which can be at most a couple of sentences long. There are around 5 different types of comment, such as...
Hi,
Say you're programming a game, and in this game, you have 5 players. Each player can have a score between 0 and 100, and is identified by a unique integer ID that's between 0 and 100. Their...
Thanks for the advice all. Makes sense.
Don't you mean where current_node points to head? Was that a typo, or am I getting mixed up somewhere?
Also with the malloc thing, I just based my code on the examples. I tried what you said, and...
OK, thanks. Maybe that seemed like a dumb question, but upto recently, I've only been programming in C++. From what I've done with that, it seems like if you call a function and it hasn't been...
Hi,
In an example C program, I saw someone use the following statement:
exit();
If I use this in a program which I compile in Visual Studio Express 2008, I get the following warning:
...
Hi,
I've been working my way through some examples about how to program C, and I think I'm beginning to understand the basics of linked lists. In the following tutorial, they use some temporary...
I'm been working my way through my C++ book ("C++ Without Fear") for a second time. Something I've noticed is that in the example code, the guy often writes stuff like this:
cout << "Enter...
Actually that stuff I posted from game.h is part of the original code. There's more to it than I posted though, so presumably there's some other stuff in there that makes it work ok. Thanks for the...
Say I write the following:
char *ClsName = "Win32OOP";
And I also want to do this:
LPCWSTR ClsName_W = L"Win32OOP";