> From: Nancy Kho
>
> I keep getting the following error:
> illegal implicit conversion from 'void * to 'ListType *'
> lst = FrmGetObjectPtr(frm, itemIndex);
>
> with the code:
>
>       FormPtr frm;
>       ListPtr lst;
>       Int             itemIndex;
>
>       frm = FrmGetActiveForm();
>       ItemIndex = FrmGetObjectIndex(frm, MainOldEvalsList);
>       lst = FrmGetObjectPtr(frm, itemIndex);
>

FrmGetObjectPtr returns void *.  You should explicitly cast it to ListType *
(or ListPtr).  E.g.,

        lst = (ListPtr)FrmGetObjectPtr(frm, itemIndex);


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