Paul Grenyer wrote:
Okay so I'm trying to replace all my malloc/free things with new/delete like I should. Now, how do I do the following:
BITMAPINFO* bmi;
bmi = (BITMAPINFO*)malloc(sizeof(BITMAPINFO) + (sizeof(RGBQUAD) * 8));
in a C++-ish way?
Ah! Well, strictly speaking this is a bit of Microsoft C, so I'd be tempted to leave it as it is.

Hah! See :P ! So there is no way to tell 'new' to allocate a certain amount of memory and then casting/splitting it as needed?


cheers,

roel





Reply via email to