HI

> Hi
> 
> > BITMAPINFO * pBmi = 0;
> > pBmi = (BITMAPINFO*) new BYTE [ sizeof (BITMAPINFO) + (sizeof 
> > (RGBQUAD) * 8)) ];
> 
> There you go! However, I would loose the cast and do it all in one go:
> 
> BITMAPINFO * pBmi = new BYTE [ sizeof (BITMAPINFO) + (sizeof (RGBQUAD) 
> * 8)) ];
> 
> Disclaimer: If the cast is actually needed, don't use a C style one, 
> use one of the proper C++ ones.


Yup, I'm a naughty boy ;-)..  I never really broke the habit.

Max


Reply via email to