VoidPtr is generic (void *), and FieldPtr (FieldType *) points to a
FieldType struct. This matters for C++, so I type cast something like
GetObject to a pointer of the type of object I'm interested in -
FieldType*, ControlType*, whatever.
-- Michael
"Rochester, Dean" <[EMAIL PROTECTED]>@news.palmos.com on
02/05/2001 09:32:37 AM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:
Subject: VoidPtr and FieldPtr Confusion
Hi
I am working through
Palm OS Programming from the Ground Up
and have run into a confusing situation.
In one example there is a function
static void setText(FieldPtr, CharPtr);
In the call for this function the FieldPtr parameter is supplied as
follows...
setText(getObject(form, ContactDetailFirstNameField), precord +
DB_FIRST_NAME_START);
in this setText call...
getObject returns a VoidPtr
Is a VoidPtr and a FieldPtr the same thing?
Thanks in advance
--
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/