> From: [EMAIL PROTECTED]
> ControlPtr ctl;
> ctl = GetObjectPtr (cbUr);
> ...
> When I try to compile I get "unknown identifier 'GetObjectPtr'"
>

GetObjectPtr() is not a Palm OS API function.  CodeWarrior includes a
version of it in their default stationary.  Here is one version of
GetObjectPtr() you can use:

void * GetObjectPtr(FormPtr form, UInt16 objectID)
{
    return FrmGetObjectPtr(form, FrmGetObjectIndex(form, objectID));
}

or, if you want to use it as you have above, assuming the correct form is
the active form:

void * GetObjectPtrFromActiveForm(UInt16 objectID)
{
    FormPtr form = FrmGetActiveForm();
    return FrmGetObjectPtr(form, FrmGetObjectIndex(form, objectID));
}


-- 
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