GetDIBits and 98 Problem
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I have a problem where I cannot use GetDIBits on 98, works fine on XP. I read somewhere that in 98 the width and height have to be divisable by 4 so I even tried that with no avail. Here is a snippet which works in XP but doesn't in 98. Has anybody got any clue why it's not working in 98
... HDC hBmDC = CreateCompatibleDC(NULL); HBITMAP hB = CreateBitmap(16,16,1,24,pPixels); bmiInfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); // get pixels from the original bitmap con verted to 24bits int iRes = GetDIBits(hBmDC,hB,0,16,NULL,&bmiInfo,DIB_RGB_COLORS); ...
Thanks