Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Components Misc > Re: Help conver...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 155 of 251
Post > Topic >>

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.
 




 4 Posts in Topic:
Help convert this C++ to Delphi Measuring size of Memory allocat
"qnewpq" <qn  2004-11-04 06:22:21 
Re: Help convert this C++ to Delphi Measuring size of Memory all
Jamie <jamie_5_not_val  2004-11-04 13:50:20 
Re: Help convert this C++ to Delphi Measuring size of Memory all
"qnewpq" <qn  2004-11-05 03:03:27 
Re: Help convert this C++ to Delphi Measuring size of Memory all
Jamie <jamie_5_not_val  2004-11-05 14:34:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 23 15:56:30 CDT 2008.