]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/HelpGen/src/HelpGen.cpp
I think it's needed...
[wxWidgets.git] / utils / HelpGen / src / HelpGen.cpp
index 64d917bd4e0e9f2fda9b9d63c345c2cfa38ee094..0933ed82972fa9a07e6397b7ba203ae93b63b57d 100644 (file)
@@ -55,6 +55,7 @@
     #include <wx/string.h>
     #include <wx/log.h>
     #include <wx/dynarray.h>
+    #include <wx/wx.h>
 #endif // WX_PRECOMP
 
 #include <wx/file.h>
 // just a copy of argv
 static char **g_argv = NULL;
 
+class HelpGenApp: public wxApp
+{
+public:
+    HelpGenApp() {};
+
+    bool OnInit();
+};
+
+IMPLEMENT_APP(HelpGenApp);
+
 // -----------------------------------------------------------------------------
 // private functions
 // -----------------------------------------------------------------------------
@@ -456,7 +467,12 @@ static void usage()
     exit(1);
 }
 
+/*
 int main(int argc, char **argv)
+{
+*/
+
+bool HelpGenApp::OnInit()
 {
     enum
     {
@@ -634,7 +650,7 @@ int main(int argc, char **argv)
             wxLogError("Can't complete diff.");
 
             // failure
-            return 1;
+            return false;
         }
 
         DocManager docman(paramNames);
@@ -654,7 +670,7 @@ int main(int argc, char **argv)
         docman.DumpDifferences(ctxTop);
     }
 
-    return 0;
+    return false;
 }
 
 // -----------------------------------------------------------------------------
@@ -1914,6 +1930,14 @@ static const char *GetCurrentTime(const char *timeFormat)
 
 /*
    $Log$
+   Revision 1.9  2000/01/16 13:25:21  VS
+   compilation fixes (gcc)
+
+   Revision 1.8  1999/09/13 14:29:39  JS
+
+   Made HelpGen into a wxWin app (still uses command-line args); moved includes
+   into src for simplicity; added VC++ 5 project file
+
    Revision 1.7  1999/02/21 22:32:32  VZ
    1. more C++ parser fixes - now it almost parses wx/string.h
     a) #if/#ifdef/#else (very) limited support