Thanks for your help, I found and fixed the bug. It was a simple error with an array going out of bounds, and for what thats worth, there were parts of the memory that were getting "shifted" which...
Type: Posts; User: conright
Thanks for your help, I found and fixed the bug. It was a simple error with an array going out of bounds, and for what thats worth, there were parts of the memory that were getting "shifted" which...
What is the correct way to copy an array to another array in C++? Currently, I am just saying: array1=array2;
I have a feeling there is a problem with this, because there are some compilers which...
does nobody have any suggestions?
Hey, I posted a couple weeks ago regarding this, and just got back from vacation. And whaddya know, same problem. The problem was that i wrote Tetris and it works perfectly on my computer, but on...
Hmm, yeah you're right. I'm sorry for posting an exe file then.
Is there someone who would be nice enough to take a look at all my code? Its kind of a lot, so I'll have to email it to you. I'd...
Hmm, okay I've been working on this for a while. Maybe its just my computer, so I've put up this game online, and if some of you could downlaod it and just tell me whether it works.
Specifically...
I just tried this, and it just gives some compiler error (not syntax), and doesn't compile. I'm using the same IDE and compiler.
This is really baffling me. I mean...its windows, how could it work...
Hi, well this is a really funny thing. The tetris I wrote works *perfectly* well on my computer, the one I developed it on. However, when I copy the exe over to my other computer, the program runs...
Thanks Ken, but the funny thing is, I found that exact same answer from YOUR website, while I was looking at some code right after I posted that. Either way :) thank you!
Nimit
I am running the following function, and the bolded line is having this error:
"ANSI C++ forbids implicit conversion from `void *' in assignment"
Here is the function:
void...
Wow, that winprog one is great! Thanks a lot, appreciate it.
Can someone please explain to me what these things are (HDC and HWND)? I am having some problem with my program that is related to these...and I just want to know what they are and how they...
Ah, well I mean, I guess I *could* buy that book, but are there any other free resources online? Like some tutorial websites or something similar?
I kinda want to save on buying books until I...
Hey, basically here is the thing. I am an experienced Visual Basic programmer, and just recently started writing code in C++ for windows (been writing C++ console for a bit too).
I am wondenrig...
well actually I kind of figured out a way around it, but I would still like to know if this is possible. Thanks! :)
Nimit
Is there any way to "reset" the WM_TIMER...as in just restart? Or will I have to Killtimer, and then SetTimer again?
For example, if i have a timer that outputs a WM_TIMER message every 5...
Hey, I did get this initial problem fixed. The problem i was having isn't happening any more, but I still have some flaws in my understanding of HDC's and HWND...etc. I will work on this further, if...
So here is the story: I am creating a tetris clone. And I have a a 2-d int array that holds the whole board in terms of a number 0-7, 0 for nothing there, and 1-7 cooresponding to the color of...
I'm using DrawText to write some text to my screen. I need to also show some integers, but that function only takes in Strings.
So I guess my question is either one of the two:
1) how do I...
So here is the thing. This isn't really a *problem* but I'm looking for some insight. The thing is, i have a couple of classes in my program, and all of the classes need to do stuff to the main...
Ah, okay, I just posted to make sure there wasn't an actual function like PauseTimer() or something. But I guess i'll just do the ignore thing then :) Thanks again.
Nimit
Hey, I have a program that utilizes the windows built in timer function.
If you forgot what I'm talking about, go here.
Anyway, so I know how to "KillTimer" and what not, but I'm wondering if...
Hey, thats true, but when I said that it worked out, I had also changed the variable to a pointer to Board, not an actual board object, so it did work out well :) thanks for all your help!
Nimit
Thanks, the prototyping worked out well!
Nimit
Hi, this has been annoying me for a few hours, I can't figure out this problem. First, here is the code that the error is concerned with one file that I will copy and paste here:
file 1: piece.h
...