]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/init.h
added ctor for wxChar/WCharBuffer from wxCStrData in ANSI/Unicode build to make it...
[wxWidgets.git] / include / wx / init.h
index a30de7522871f35b0448a8a2c78412821b981a64..8ceae027c8c0ce0972ad313c799b5aa734a84f23 100644 (file)
@@ -12,6 +12,7 @@
 #ifndef _WX_INIT_H_
 #define _WX_INIT_H_
 
+#include "wx/defs.h"
 #include "wx/wxchar.h"
 
 // ----------------------------------------------------------------------------
@@ -72,7 +73,10 @@ class WXDLLIMPEXP_BASE wxInitializer
 {
 public:
     // initialize the library
-    wxInitializer() { m_ok = wxInitialize(); }
+    wxInitializer(int argc = 0, wxChar **argv = NULL)
+    {
+        m_ok = wxInitialize(argc, argv);
+    }
 
     // has the initialization been successful? (explicit test)
     bool IsOk() const { return m_ok; }