[Mono-list] Re: How to expose C++ virtual functions?

Thomas Stolwijk stolwijk@virtual-finance.nl
Sun, 19 Jan 2003 13:59:09 +0100


> How do I get "base.OnInit()" to call wxApp::OnInit()? The obvious, but
> wrong, solution would be to have base:OnInit() call an unmanaged C
> function like this:
> 
>    bool _App_OnInit(wxApp* theApp) 
>    {
>       return theApp->OnInit();
>    }

Maybe like so:

bool _App_OnInit(wxApp* theApp) 
{
   return theApp->wxApp::OnInit();
}

(maybe this isn't portable ?)

cheers,
Thomas


Thomas Stolwijk
mailto:thomas@virtual-finance.nl 
http://www.thomas-stolwijk.com