FrmGetObjectPtr return a void pointer, your assigning it to a TableType
pointer...  the compiler will not implicitly convert it for you.
tableP = (TableType *) FrmGetObjectPtr....

----- Original Message -----
From: "Null" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, February 06, 2001 12:08 PM
Subject: Illegal Implicit Conversion..


> Hi,
>
> I'm using CW6 with C++ (Cos I'm also trying my hand on Sybase Ultralite
> which requires
> c++ usage).
>
> When I try compile I get the following error!
>
> Error   : illegal implicit conversion from 'void *' to
> 'TableType *'
> Main.cpp line 172   tableP = FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,
> MainRecordListTable));
>
>
> Here's the code :
>
> static void MainFormInit(FormPtr frmP)
> {
>    TablePtr tableP;
>    tableP = FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,
> MainRecordListTable)); // error here!
>
>    .. etc ..
>
> Hope someone could help me. I'm stumped!
>
> Thanks!
>
>
> --
> 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