Petzold shows using it like this:
BYTE *pBits;
hBitmap = CreateDIBSection( ... &pBits ...);
That will not compile with Pelles.I have to use a VOID type as it is prototyped in the msdn library:
VOID *pBits;
hBitmap = CreateDIBSection( ... &pBits ...);
I assume the msdn type delaration is correct.
If so, is this also correct, if I want to write 4 bytes using that pointer:
VOID *pBits;
DWORD *pixel;
hBitmap = CreateDIBSection( ... &pBits ...);
pixel = (DWORD*) pbits;