from DLL events

bray at sent.com bray at sent.com
Fri Sep 1 09:18:12 PDT 2006


Hello:

I wish use wxWidgets from DLLs. I used this code:

class wxNoneAppA : public wxApp 
{ 
public: 
   virtual bool OnInit() { return true; }
}; 

IMPLEMENT_APP_NO_MAIN( wxNoneAppA )

Then call wxInitialize() when it loads. It works fine by itself (not
used in a wxApp). However, when I load from a wxApp, the events are
never being called from the wxApp instance. Dialogs come up but the
events are no longer being called. The same wxApp without the DLL calls
the events. I presume the DLL instance is intercepting these, no?

Any ideas on what I may be doing wrong?

Regards, Brian






More information about the wx-users mailing list