Are you creating a structure for each, filling it with the data from
the PIM, then doing a sizeof on each variable of the type?  Determining
the exact size of each record in each PIM on any old handheld is a bit
of a challenge...you might try getting a record out of the PIM's database
with DmGetRecord (the source for the PIM's is in the SDK, of course), 
load it into your structure, and for fields that aren't filled in, set 
those fields in your structure to NULL or something, then measure the
size of your structure with a sizeof.

Hope that helps!

-Rus
>
>Hello,
>
>I am having trouble determing the size of PIM records (in particular
>Address and Datebook) given only a character pointer to the 
>beginning of
>the record.  I have the record format for each PIM but am 
>still unable to
>correctly determine the size of the record as some of the 
>fields within the
>record are optional.  Any help is greatly appreciated.  Thanks.
>
>--Jessica
>
>
>-- 
>For information on using the Palm Developer Forums, or to 
>unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to