Talk About Network



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 > Help convert th...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 155 of 240
Post > Topic >>

Help convert this C++ to Delphi Measuring size of Memory allocated to a Type

by "qnewpq" <qnewpq@[EMAIL PROTECTED] > Nov 4, 2004 at 06:22 AM

This is the C++ code
====================

ImageBuff = (uint8*)malloc(ATGetImageBufferSize());
memset (&sEnrollResults, 0, sizeof(tsAT_ENROLL_RESULTS));
sEnrollResults.uiStructureSize = sizeof( tsAT_ENROLL_RESULTS);

Delphi Code
==========
Reallocmem(pImageBuff,ATGetImageBufferSize);
//e.g ATGetImageBufferSize returns 18090 so pImageBuff is sized to 18090.
If I send sizeof(pImageBuff) I get 4. I want to measure the size of the
allocated memory so that I can get 18090. Please assist am stuck!




 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 Thu May 15 0:23:59 CDT 2008.