Thread: Loading Bitmaps

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80
    Can you give me an example ? "Since you're using C++ you'll need to cast the return value from HANDLE to HBITMAP using static_cast or the c equivalent if you prefer."
    /* Have a nice day */

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    In C++:

    Code:
    HBITMAP hBitmap = static_cast<HBITMAP>(LoadImage(...));
    In C:

    Code:
    HBITMAP hBitmap = (HBITMAP)LoadImage(...);
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Loading Bitmaps in Allegro
    By LiNeAr in forum Game Programming
    Replies: 1
    Last Post: 08-15-2005, 04:12 PM
  2. Loading bitmaps with createfile() +CreateDIBSection
    By Stevo in forum Windows Programming
    Replies: 7
    Last Post: 05-13-2004, 09:22 PM
  3. Loading bitmaps without win32
    By /Muad'Dib\ in forum C++ Programming
    Replies: 0
    Last Post: 04-05-2004, 02:47 PM
  4. Loading Bitmaps
    By Neandrake in forum Windows Programming
    Replies: 4
    Last Post: 12-17-2001, 01:50 AM
  5. loading Bitmaps
    By Stealth in forum C++ Programming
    Replies: 2
    Last Post: 10-24-2001, 09:01 PM