]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/png/pngdemo.cpp
compilation fix: needs wx/string.h
[wxWidgets.git] / samples / png / pngdemo.cpp
index ba275d9c090f03b162ec2c19fe8e572adb2ca3ef..0cd3cace278866115fcb061e0cbe4168d0e4668b 100644 (file)
@@ -9,10 +9,6 @@
 // Licence:     wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
-#pragma implementation "pngdemo.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -31,6 +27,9 @@ IMPLEMENT_APP(MyApp)
 
 bool MyApp::OnInit(void)
 {
+  if ( !wxApp::OnInit() )
+    return false;
+
   wxImage::AddHandler(new wxPNGHandler);
 
   // Create the main frame window