class TextApp : public wxApp { public: TextApp(); virtual bool OnInit(); private: TextFrame* frame; }; TextApp::TextApp() { frame = new TextFrame(); }