#include #include #include "MainFrame.h" #include // Define the MainApp class MainApp : public wxApp { public: MainApp() {} virtual ~MainApp() {} virtual bool OnInit() { // Add the common image handlers wxImage::AddHandler( new wxPNGHandler ); wxImage::AddHandler( new wxJPEGHandler ); MainFrame *mainFrame = new MainFrame(NULL); SetTopWindow(mainFrame); return GetTopWindow()->Show(); } }; DECLARE_APP(MainApp) IMPLEMENT_APP(MainApp)