Search:

Type: Posts; User: Brokenhope

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,902

    I want this to all be easily editable, so all I...

    I want this to all be easily editable, so all I have to do to add levels is create the text file and add it to the resource file. It is working for backgrounds of levels, but now I just need to do it...
  2. Replies
    4
    Views
    1,902

    Loading Text File Resources

    I am working on converting my hand-coded int arrays for levels to putting them in a .txt file and loading them by resource. So this function will also handle looping through the file and then setting...
  3. Wow, thanks a lot for the replies. I was really...

    Wow, thanks a lot for the replies. I was really doubting this would work, but with the change above it is now working as it should:



    HBITMAP loadResourcePicture(int resid) {

    //...
  4. Heh, that would have really simplified it. I...

    Heh, that would have really simplified it. I think I have to try it now though, anyways.

    For some totally obscure reason, the function only works when I call it in my LoadImages() function, which...
  5. Thanks a lot for the help. It is now working....

    Thanks a lot for the help.

    It is now working.

    Function:


    HBITMAP loadResourcePicture(int resid) {

    // variables
  6. I am now pretty sure the problem is in returning...

    I am now pretty sure the problem is in returning the HBITMAP.

    I did some more testing trying to draw a rectangle to hMem, and still nothing displays.

    I can also say the HBITMAP is not null...
    ...
  7. Thanks again for the reply. Alright, it looks...

    Thanks again for the reply.

    Alright, it looks better now, and I checked quite a few of the return values, and everything looks good... but when the background is displayed its completely red, and...
  8. Thanks for the replies. I wrote up the function,...

    Thanks for the replies. I wrote up the function, but it isn't working. Fail pops up, and I am almost sure it is because my resource file is wrong. My function looks like this:



    HBITMAP...
  9. Loading and Displaying Other Format Images (than bmp)

    I am making a game in Win32 C++, however, I have ran into a problem.

    So far I have 4 background images of levels, saved as .bmps, and it is adding about 8mbs to my program. That is way too much if...
  10. Replies
    7
    Views
    2,393

    Nvm...

    Nvm...
  11. Create a bool such as: lastCharWas and set it to...

    Create a bool such as: lastCharWas and set it to false initially. Then when you find the first character you are looking for set it to true. Then when looking for the next character, if 'lastCharWas'...
Results 1 to 11 of 11