Your myform.MainFormHandleEvent function needs to be a static function.
Regular member functions have the "hidden" this pointer that isn't
supplied by the callback.
James wrote:
Hi I am new to c++ on the palm and was trying to convert a small app over to
c++ when I ran into this problem below?
Can anyone assist me in this? I created a forms object, which I placed all of
the forms/handlers in it that I would be using in this project and it seems
that this is a problem?
the error is as follows:
src/App.cpp: In method `Boolean App::AppHandleEvent(EventType *)':
src/App.cpp:36: no matches converting function `MainFormHandleEvent' to type
`Boolean (*)(EventType *)'
src/../h/Forms.h:8: candidates are: Boolean Form::MainFormHandleEvent(EventType
*)
This is what I have defined in my app, object name for the forms is
myform.
FrmSetEventHandler(form, myform.MainFormHandleEvent);
Thanks
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/