It worked! The code example work perfectly Martin,
Thanks for the help! ;) Jim "Hans-Christoph Wirth" <[EMAIL PROTECTED]> wrote in message news:94009@palm-dev-forum... > > > Jim Duffy wrote: > > >When I go to read the records back, I need to lock a "ItemType*" to see the > > >array of ItemTypes, but I first need to move over the "SystemType" which is > > >at the beginning of the record. > > > > > >If I increment the locked pointer by one, it moves the size of itself, > > which > > >is not the same size at the SystemType. > > > > > >Is there a way to move over the first struct and then lock the "ItemType*" > > >pointer? > > typedef struct { > SystemType s; > ItemType i[0]; /* some compilers may need a 1 instead of a 0 here */ > } RecordType; > > lock the new RecordType and access via r->i[n]. > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
