Re: Help convert this C++ to Delphi Measuring size of Memory all
by "qnewpq" <qnewpq@[EMAIL PROTECTED]
>
Nov 5, 2004 at 03:03 AM
Thanks a lot Jamie,
So there is no way I can get 18090. I will always just get 4 right? am
supposed to get size of a record e.f sizeof(MyRecord) then use this value
to size a buffer for later use.
C++ Code
================
ImageBuff = (uint8*)malloc(ATGetImageBufferSize());
memset (&sEnrollResults, 0, sizeof(tsAT_ENROLL_RESULTS));
sEnrollResults.uiStructureSize = sizeof( tsAT_ENROLL_RESULTS);
If I duplicate the function sizeof() to Delphi I am getting a structure
size error. That the size of the structure is not ok.
Any more idears.