// For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include #endif #include class myApp : public wxApp { public: bool OnInit( ); int OnExit() { return true; } }; IMPLEMENT_APP(myApp); bool myApp::OnInit( ) { wxApp::OnInit(); #ifdef __WXGTK__ //See http://www.wxwindows.org/faqgtk.htm#locale setlocale(LC_NUMERIC, "C"); #endif wxFrame *frame = new wxFrame(NULL , -1 ,_T("My window..")); SetTopWindow(frame); frame->Show(true); return true; }