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/

Reply via email to