#include #include class myApp : public wxApp { public: bool OnInit(void); int OnExit(void); int OnRun(void); }; IMPLEMENT_APP(myApp) bool myApp :: OnInit(){ wxFile *file = new wxFile( wxT("data.txt"), wxFile::write); file->Write("jakis sobie tam text\n", 21); file->Write("kolejna linia\n", 15); delete file; return true; } int myApp :: OnRun(){ this->ExitMainLoop(); return 0; } int myApp :: OnExit(){ return 0; }