I'm a newby teaching myself c++ and I'm just up to directX. So far I've just been reading online tutorials about how the directdraw objects work, and I've got the surfaces,fliping,screenmodes all working fine, but when I get to loading an image onto the buffer, I get some issues. firstly, can anyone tell me how to extract a PALETTEENTRY(s) from a bmp on disk? I cant find ANYTHING on this. secondly, I'm shaky on HBITMAP stuff, can anyone tell me if this is cos I dont have a palette or something else, when I do this:
hbm = ( HBITMAP )LoadImage( NULL,
NULL, Width, Height, LR_LOADFROMFILE | LR_CREATEDIBSECTION);
I get exactly eleven of these kick up at "back.bmp"
error C2018: unknown character '0xa0'
Everything i've read uses a DC to a HBITMAP to blt() onto a (DC to a) surface
If theres a better way to get bmp's onto surfaces i'd love to know, cos as you can see i'm a bit stumped.
0 · ·