Thread: Problem with bitmap loading.

  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.

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    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.

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, 06:56 AM
  3. Loading a bitmap (Without using glaux)
    By Shamino in forum Game Programming
    Replies: 7
    Last Post: 03-16-2006, 09: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, 09:54 PM