yes, I know the prototype is wrong but I can do nothing, since I think I
don't understand it, it seems strange for me, can you give me some help?
The protoype is here:
Boolean (FormGadgetHandlerType) (struct FormGadgetType *gadgetP, UInt16 cmd,
void *paramP)
I think the problem is related to the strange (FormGadgetHandlerType), I
don't know what's that mean here, it is not a functon name and not parameter
but with "( ) ". so, anyone can help me? or may be give some example to me?
Oscar
----- Original Message -----
From: "Richard Burmeister" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Sunday, February 11, 2001 1:31 AM
Subject: RE: FrmSetGadgetHandler problem
> > From: Oscar
> > bool PFormGadgetHandler( struct FormGadgetType* gadgetP, UInt16 cmd,
void
> > *paramP )
> > but I got the follow compilation error:
> > Error : illegal explicit conversion from 'bool (*)(FormGadgetType *,
> > unsigned short, void *)' to 'unsigned char (FormGadgetType *, unsigned
> > short, void )' Starter.cpp line 336 mSetGadgetHandler ( frmP,
ObjIndex,
> > (FormGadgetHandlerType)PFormGadgetHandler );
>
> Your prototype doesn't match what the compiler expects. Read the
> documentation again and change your prototype to match.
>
>
> --
> 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/