hi all!!
if any one would want to make this day be any easier for me,please help me
make this"offsetof" macro work!!!
i'm using it like this-
FldSetText
l_fldP,l_fieldH,(UInt32)OffsetOf(myrecordtype,text),sizeof(g_record->text)+1
) ;
myrecoredtype contains two char pointers of which text is the second one.the
problem is the offset starts from 4 bytes after the first char pointer and
not from the start of the second text pointer which has to be the case.
p.s i'm calling it for a single field as well and no hookups.
thanks,prashanth
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/