]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/calendar/calendar.cpp
changes wxDirExists() to accept wxString instead of wxChar*, so that it can be used...
[wxWidgets.git] / samples / calendar / calendar.cpp
index 719f4b2f1ee239197b0fd405d7c18de96a6dd3c7..2b83737e0796808c3abada6be934708e7f59351f 100644 (file)
@@ -266,6 +266,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(_T("Calendar wxWidgets sample")
 #ifndef __WXWINCE__