PalmOS SDK reference shows that FrmGetObjectPtr returns a void* but tableP
in your code is a TableType*, so
the compiler isn't happy. U need to declare tableP as void* or do a type
casting. (U will not have such a problem if you use C instead of C++).
Hope this help.
Jacky
----- Original Message -----
From: Null <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 6:08 AM
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/