starting a function from a menu
Posted on 1998-09-28
I want to activate a function from a menu.
The function is a member of a different class from the one that is invoked when going to the menu.
In the message pump I write:
As I wrote, MyApp is a different class and I get the compiling error:
'MyApp::Init' : illegal call of non-static member function.
I do not want to make Init a static function because this causes problems later on.
What solves this?