i have this code:
The protorype for ecore_evas_callback_resize_set() is:
void ee_resize_cb (Ecore_Evas * _ee);
The compiler gives error:
void ecore_evas_callback_resize_set ( Ecore_Evas * ee, void(*)(Ecore_Evas *ee) func)
If I try to pass &ee_resize_cb to the function, i get another error:
main-window.cpp:79: error: argument of type
‘void (MainWindow::)(Ecore_Evas*)’ does not match ‘void (*)(Ecore_Evas*)’
How can I pass a method pointer as a function pointer, then?
main-window.cpp:79: error: ISO C++ forbids taking the address
of an unqualified or parenthesized non-static member function to form a pointer to member function.
Thanks for your help!