Sigh... After a long exhausting road, I finally loaded my first bitmap. Here is the code I used:
HDC compatible = GetDC(hwnd);
HDC hdcMem = CreateCompatibleDC(compatible);
ReleaseDC(hwnd, compatible);
HBITMAP hbmNew = (HBITMAP)LoadImage(NULL, "boat.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
HBITMAP hbmOld = (HBITMAP)SelectObject(hdcMem, hbmNew);
BitBlt(compatible, 0, 0, 300, 300, hdcMem, 0, 0, SRCCOPY);
I don''t really UNDERSTAND this all yet, but I just got it done and I''m too happy to think about it
![](smile.gif)
(If someone could explain the need for CreateCompatibleDC, I''d really appreciate it!) Anyway, seeing as how I haven''t really thought about it yet, but using the method I have used above, is it relatively easy to load templated bitmaps for animation sequences and stuff? Because I was hoping to do some kind of platformer and I was hoping to use templated bitmaps so that I dont end up loading 5-10 frames for a simple run cycle. In short, can I load and blit animation sequences from a templated .bmp with this method? thanks again
![](smile.gif)
Peon