X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff65119eb257c86337573af44ef1094dfe28b08e..f6d43eda3e8bc5c17cd3c55f037abcc4a4e043be:/wxPython/contrib/dllwidget/dllwidget_.i diff --git a/wxPython/contrib/dllwidget/dllwidget_.i b/wxPython/contrib/dllwidget/dllwidget_.i index 52f4622f6e..47c2f24645 100644 --- a/wxPython/contrib/dllwidget/dllwidget_.i +++ b/wxPython/contrib/dllwidget/dllwidget_.i @@ -14,7 +14,7 @@ %{ -#include "export.h" +#include "wxPython.h" #include "dllwidget.h" %} @@ -27,6 +27,13 @@ %extern windows.i %extern _defs.i +//---------------------------------------------------------------------- + +%{ + // Put some wx default wxChar* values into wxStrings. + static const wxString wxPyEmptyString(wxT("")); +%} + //--------------------------------------------------------------------------- /* @@ -82,8 +89,8 @@ class wxDllWidget : public wxPanel public: wxDllWidget(wxWindow *parent, wxWindowID id = -1, - const wxString& dllName = wxEmptyString, - const wxString& className = wxEmptyString, + const wxString& dllName = wxPyEmptyString, + const wxString& className = wxPyEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); @@ -92,7 +99,7 @@ public: bool Ok(); - int SendCommand(int cmd, const wxString& param = wxEmptyString); + int SendCommand(int cmd, const wxString& param = wxPyEmptyString); wxWindow* GetWidgetWindow(); static wxString GetDllExt(); @@ -102,9 +109,6 @@ public: %init %{ - wxClassInfo::CleanUpClasses(); - wxClassInfo::InitializeClasses(); - %}