21 Apr
2005
21 Apr
'05
8:15 p.m.
On 4/20/05, Sean DeNigris
LibraryFunction(0, &bytesNeeded); scoped_array<Type>(static_cast<PType>(new BYTE[bytesNeeded]));
I'm not sure if that would nessesarily work properly depending on how your architecture requires things to be aligned... How about this?: scoped_array<Type>( new Type[ bytesNeeded / sizeof(Type) ] ); I think that should work, so long as LibraryFunction includes any padding. - Scott McMurray