April 22nd, 2011, 11:46 PM
Pretty sure that's perfect for what I'm going for. Thanks Paul. However, my curiosity is still kicking around. Is it possible to initialize any sort of variable using a string variable?
string...
April 22nd, 2011, 04:05 PM
Just for further clarity, I'm trying to make a function whose only purpose is to declare and initialize an array. The function takes one string input and uses that string input as the variable name...
April 22nd, 2011, 03:49 PM
Apologies for the lack of clarity, what I'm trying to do is just declare a number of arrays that would vary.
something that would essentially do something like this:
int hand1 [8];
int hand2...
April 22nd, 2011, 12:12 PM
I'm pretty new to programming, I'm trying to figure out how to do something that I assume is relatively easy. All I'm trying to do is declare an array with a string so I could do it in a for loop...
April 20th, 2011, 05:40 AM
Thank you all for the tips, I really appreciate it. A lot easier to get into the habit earlier than later.
As far as the drawing issue, it ended up being something pretty simple. Minimized and...
April 19th, 2011, 07:29 AM
Paul, do you mean something like this?
if (BitBlt(.....)
[INDENT]BitBlt(....)
else
[INDENT]*some sort of error message*
April 19th, 2011, 07:22 AM
Just to test it out, I tried the GetLastError() after the first EndPaint even though it's not supposed to be there. BitBlt is returning 1 and GetLastError returns 0, only furthering my confusion.
April 19th, 2011, 07:11 AM
Yeah, the end paint thing I noticed once I posted and saw them right next to each other. Unfortunately cleaning that up didn't seem to fix anything.
Paul:
As far as the error checking, it's...
April 18th, 2011, 03:41 PM
So I'm trying to write a relatively basic blackjack programming for learning purposes. It seems like something really odd is happening when WM_PAINT is called. It works fine until I introduce an if...