Original Post
I am trying to make an application skin using bitmaps. I have tried both of these functions in order to get my application to load the bitmap before blitting it to the screen: m_hSkinBitmap = (HBITMAP)LoadImage(hInstance, MAKEINTRESOURCE(IDB_MYPIC),IMAGE_BITMAP, 0, 0, LR_LOADMAP3DCOLORS|LR_DEFAULTCOLOR); --and-- m_hSkinBitmap = LoadBitmap(hInstance, MAKEINTRESOURCE(IDB_MYPIC)); When I check if my HBITMAP variable is valid using : if(!m_hSkinBitmap) MessageBox(m_hWindow, "Could not load bitmap", "Image Error", MB_OK | MB_ICONERROR); and run the program...my program always displays the error message box. I have tried just putting "mypic.bmp" in place of the MAKEINTRESOURCE(IDB_MYPIC) because the picture is in the same directory as the executable, but my check still returns false and no image is blitted to the screen...just the default window look. I have a resource.h file to define the resources and a resource.rc file to name the location of the bitmap image for the resource. Just to let you know, I followed all of FlipCodes instructions, but I still have this problem. Can anyone help me? -Sean G.-