A MemPtr and a VoidPtr is simply a pointer or and address of a location
in memory.  For example the address of a database record.
    Due to the way memory is arranged and data stored with on the Palm the
operating system has to move records and data around to make room for other
data and  prevent fragmentation of memory.
    So instead of returning a point to a record in memory, the operating
system returns a pointer to a list of pointers.
    The pointer to the record can change and the operating system will
change the pointer to it appropriately. But  it is allways stored in the
SAME location in memory as the original pointer. So the operating system
returns the pointer (which doesn't change) to the place in memory where the
updated pointer is stored. This is a handle.
I hope this answers your question.


----- Original Message -----
From: Nick Torenvliet <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Tuesday, June 27, 2000 4:19 PM
Subject: Data types- what are they?


>
>
> I have just converted the application I am working on to OS3.5 and
> although ingnorance is bliss I have a couple of questions about data
> types(I've been converting names for hours now).
>
> For os3.5 I am looking for the dif between a MemPtr and a MemHandle.
> For os3.3 I am looking for the dif between a VoidHandle and a VoidPtr.
>
>
> Thanks again, Nick Torenvliet
>
>
>
> --
> 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