Hello everyone I am a noob in c++ and am writing a little game. I am wanting to read a bitmap file into my program into a memory DC and assign a HBITMAP handle to it so I can then BitBlt it as needed. The bitmap is an image of the tiles I need to use. I know how to load the bitmap if I make it a resource in the executable file, however as there will be a number of images I need, I want to be able to read the bitmaps as needed from the actual .bmp file. I have tried quite a few tutorials found through google but with no luck. I only need to read in 24bit bitmaps, so don't need any code for palettes.
Could someone shed some light please? I am reading the file header and info headers OK, and the data. I think I am going wrong from there because when I try and do a CreateDIBitmap from the data, it does not show anything except a black box.
thanks