Problem with bitmap loading.

This is a discussion on Problem with bitmap loading. within the Windows Programming forums, part of the Platform Specific Boards category; I seriously don't know whats wrong with the code. Everything looks fine but the bitmap would be displayed....

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    20

    Problem with bitmap loading.

    I seriously don't know whats wrong with the code. Everything looks fine but the bitmap would be displayed.
    Attached Files Attached Files

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,854
    shouldn't

    "C://Dodger//Rect.bmp"


    be

    "C:\\Dodger\\Rect.bmp" ??

    if that does not fix it then test the return

    ie

    if(rect == NULL)
    iError = GetLastError() //find this code in the help to find out what went wrong
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    20
    Novacain. You were right. Thanks for the help. I made that small program because I was having trouble with a larger program. I made the necessary changes in the larger program and the problem still occurs. I haven't programed in WinAPI in like weeks. I really don't know whats wrong with my double buffering in this program.
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with Bitmap Display
    By The Brain in forum Windows Programming
    Replies: 7
    Last Post: 03-23-2009, 05:33 AM
  2. 32 bit color depth bitmap problem with XP
    By kalabala in forum C++ Programming
    Replies: 0
    Last Post: 12-22-2008, 05:56 AM
  3. Loading a bitmap (Without using glaux)
    By Shamino in forum Game Programming
    Replies: 7
    Last Post: 03-16-2006, 08:43 AM
  4. Loading Bitmap under VC++
    By abu in forum Windows Programming
    Replies: 1
    Last Post: 05-14-2004, 01:07 AM
  5. Problem With My Bitmap
    By Sebastiani in forum Windows Programming
    Replies: 9
    Last Post: 10-29-2001, 08:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21