CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: RasputinII

Search: Search took 0.04 seconds.

  1. Re: using a string in a loop to declare a variable name

    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...
  2. Re: using a string in a loop to declare a variable name

    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...
  3. Re: using a string in a loop to declare a variable name

    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...
  4. using a string in a loop to declare a variable name

    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...
  5. Replies
    10
    Views
    1,941

    Re: Painting Gremlins and weird bitblt stuff

    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...
  6. Replies
    10
    Views
    1,941

    Re: Painting Gremlins and weird bitblt stuff

    Paul, do you mean something like this?



    if (BitBlt(.....)
    [INDENT]BitBlt(....)
    else
    [INDENT]*some sort of error message*
  7. Replies
    10
    Views
    1,941

    Re: Painting Gremlins and weird bitblt stuff

    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.
  8. Replies
    10
    Views
    1,941

    Re: Painting Gremlins and weird bitblt stuff

    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...
  9. Replies
    10
    Views
    1,941

    Painting Gremlins and weird bitblt stuff

    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...
Results 1 to 9 of 9





Click Here to Expand Forum to Full Width

Featured