i'm tring to load a bitmap image from a bmp file stored in a RAR archive and then to set the image for a toolbar.
i have the support to read the file in memory(a block of chars) and then i'm using the fallowing code to set image for the toolbar :
char* buffer; // the block
CBitmap *bmp = new CBitmap();
bmp->CreateBitmap(80, 16, 4, 8, NULL);
BOOL bRes = m_wndToolBar.SetBitmap((HBITMAP)(*bmp));
this code works only if a set True color(32 bit)... in all other cases DOESN'T WORK !!!!!
anybody has an ideea or a suggestion ??????
10x A LOT