Originally Posted by Desolation
Dude, what I meant is you need "< 5" instead of "!= 5". If you really want to stick with != use "!= 4". As for your second question, the values are undetermined, if I recall. I don't think there's a default constructor therefore no specific value is given. It will be whatever crap was there before it was allocated so it could be -1 just as well as 234567 if you get what I mean. And for your last question, you cannot assign a RECT with a value. You can only assign values to its members.
Oh, and by the way, in C/C++ it's NULL and not null like in Java.
Last remark: remember that in C++ (probably in Java too) arrays start at index 0 and not 1 . This could cause you to bang your head on your home desktop