I'm slowly learning DirectDraw programming, I'm using it ontop of a form so I can draw alot faster due to the canvas drawing flashing occasionally (too slow). I have a map area that is drawn using...
Type: Posts; User: Scorpion-ice
I'm slowly learning DirectDraw programming, I'm using it ontop of a form so I can draw alot faster due to the canvas drawing flashing occasionally (too slow). I have a map area that is drawn using...
Hi, a Lecturer told a friend of mine that using int main() was bad practice and that void main() is the correct way for C++. Then told him to learn "ghost" or something, anyone shed any light on...
hmz, surely that would give the same effect as when the time goes over 3hrs (past midnight) that the day would = 1, or did u mean convert it all into seconds and then work out how many hours are...
I have been writing a program and I came across a problem and have scrapped my code so many times, here is an example of what im trying to do.
I have the date and time setup, say for example the...
any idea how you would be able to save the String to a text file and be able to load it back up without any problems?
hehe a reason to why u shouldn't use it would be a nice thing to say instead of saying don't do this don't do that etc.
look at the "atoi" (alpha to integer) function, an integer cannot handle input other than a number, and will crash, whereas if you use atoi ( stdio.h or stdlib.h i think ) it will convert to 0.
I...
c_str() gives me invalid data sometimes, any idea on that too?
I mean I convert a String to a Char using the c_str() function and it would give me something like "[][]|||^*" back, unless there is...
I don't wanna preset the variable like that, I have an external const char * with names within it that I want to use to set the other type of variables to begin with. But I seem to have to use a...
I want to save some variables to a data text file, problem is the only way to do this i know of uses a "char *", I need to save some "String" type variables into the txt file that can be reloaded...
char *split_sentence( char *fStr, char *bStr )
{
while( isspace( *fStr ) ) fStr++;
while( *fStr != '\0' ) {
if( *fStr == ' ' ) {
fStr++;
break;
}
*bStr++...
Sure, all examples will be useful in helping me learn this, hopefully well commented too ;)
Having the bitmaps already within the executable which I can use for the BitBlt.
And thankyou :)
If you was wanting to write a mapping system or a game that uses a 2D map, but is too big to fit on the screen all at once, one method was the "BitBlt" API calls which I am trying to learn, I was...
I was told using a "long long" was bad practice, although it didn't work with my compiler anyway :/
I have resorted to using a "double" for the time being.
As a signed long will only allow up to 2 billion odd, without using an unsigned how would you be able to use numbers greater than this?
I'm using the Visual Borland Builder 3 Standard compiler and wondered if anyone wouldnt mind helping me learn the "BitBlt" technique, an example would be greate that I can compile and learn from, I...