]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/help/demo.cpp
changes wxDirExists() to accept wxString instead of wxChar*, so that it can be used...
[wxWidgets.git] / samples / help / demo.cpp
index 819f8154682e0393290f34636d092f62bbd95974..7749c96fc8b9831d82d4a0e5478825b607b8720c 100644 (file)
@@ -287,6 +287,9 @@ IMPLEMENT_APP(MyApp)
 // `Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     // Create a simple help provider to make SetHelpText() do something.
     // Note that this must be set before any SetHelpText() calls are made.
 #if USE_SIMPLE_HELP_PROVIDER