helpful to know but I already solved it. My handleEvent was non-static unlike the other calls
On 7/26/07, luis maldonado <[EMAIL PROTECTED]> wrote: > > Because your function is not an independent functions but rather a public > functions withing a class and CW is having trouble with it. you need to > include the app event loop and the apphandleevent into your class and then > you should be able to use the callback event handler from within your > class > > > hope this helps > > > > >From: "Andrew Tamoney" <[EMAIL PROTECTED]> > >Reply-To: "Palm Developer Forum" <[email protected]> > >To: "Palm Developer Forum" <[email protected]> > >Subject: FrmSetEventHandler > >Date: Wed, 25 Jul 2007 15:39:08 -0000 > > > >So im having a little bit of trouble with the FrmSetEventHandler(FormType > >*formP, FormEventHandlerType *handler). I am trying to add a new form > to > >some code and I want to give it a event handler. Looking through the > code > >I see this function used in two ways. > > FrmSetEventHandler(frmP, (FormEventHandlerType *) > >&(QForm::EventDispatcher)); > > > >and > > > >extern Boolean MainFormHandleEvent(EventPtr eventP); > >FrmSetEventHandler(frmP, MainFormHandleEvent); > > > >I have tried to add my own form handler with > > FrmSetEventHandler(frmP, (FormEventHandlerType *) > >&(QForm::HandleEvent)); > > > >and > > > >extern Boolean QForm::HandleEvent(EventPtr eventP); > >FrmSetEventHandler(frmP, QForm::HandleEvent); > > > >in both cases I get: > >Error : illegal explicit conversion from 'void' to > >'unsigned char (*)(struct EventType *)' > >QForm.cpp line 280 FrmSetEventHandler(frmP, (FormEventHandlerType > *) > >&(QForm::HandleEvent)); > >Why are the other calls working and why can I not get mine to compile > > > > > >-- > >For information on using the ACCESS Developer Forums, or to unsubscribe, > >please see http://www.access-company.com/developers/forums/ > > _________________________________________________________________ > Need a brain boost? Recharge with a stimulating game. Play now! > http://club.live.com/home.aspx?icid=club_hotmailtextlink1 > > > -- > For information on using the ACCESS Developer Forums, or to unsubscribe, > please see http://www.access-company.com/developers/forums/ > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
