X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de47428c46bc39580cc8b69b2417387e8f91cd84..6cd674726b8ae173a567410b03bfa94423c69926:/samples/font/font.cpp diff --git a/samples/font/font.cpp b/samples/font/font.cpp index 649a3d25a5..722c813fb3 100644 --- a/samples/font/font.cpp +++ b/samples/font/font.cpp @@ -40,7 +40,7 @@ #endif // used as title for several dialog boxes -static const wxChar SAMPLE_TITLE[] = "wxWidgets Font Sample"; +static const wxChar SAMPLE_TITLE[] = _T("wxWidgets Font Sample"); // ---------------------------------------------------------------------------- // private classes @@ -234,6 +234,9 @@ IMPLEMENT_APP(MyApp) // `Main program' equivalent: the program execution "starts" here bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + // Create the main application window MyFrame *frame = new MyFrame(wxT("Font wxWidgets demo"), wxPoint(50, 50), wxSize(600, 400));