Use
ptr = MemHandleLock(recordH);
hope this solves your problem.
GuangHe Pan wrote:
>
> Function "MemDeref" is used In Address.c (line 2054) as following:
>
> // Find out where the note field is to edit it
> ptr = MemDeref (recordH);
> offset = record.fields[note] - ptr;
> FldSetText (fld, recordH, offset, StrLen(record.fields[note])+1);
>
> When I copy above code to my application in PalmOS3.5, the function
> "MemDeref" doesn't work. the err code as following:
>
> "function has no prototype"
>
> MemDeref was defined in "MemoryPrvNew.h". But I can not find
> any documentaion about this function.
>
> How can I modify the above code? or which function I can use to
> replace "MemDeref".
>
> Thanks for your help
>
> -Rocky
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/