typedef struct tagBITMAP { // bm
LONG bmType;
LONG bmWidth;
LONG bmHeight;
LONG bmWidthBytes;
WORD bmPlanes;
WORD bmBitsPixel;
LPVOID bmBits;
} BITMAP;

Just what is the data type "LONG"
Is it just a double word

The reason i ask is because when i get a pointer to this structure i'm getting incorrect values returned.

bmWidth must be divisible by two because windows assumes it is word aligned. If my bitmap width is not divisable by two will it affect anything and hence give me incorrect value for bmWidth.
Posted on 2001-07-31 12:44:26 by titan
'Long' is the same as 'Int' i.e. double word
Posted on 2001-07-31 14:22:41 by Mel