]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/iewin/wxactivex.cpp
Changes for wxUSE_UNICODE==1
[wxWidgets.git] / wxPython / contrib / iewin / wxactivex.cpp
index c58e2ee90c4eefb2f6c556e04be44a76ea1d2f7e..e53f3b3cbc79569fc0d653e9d6a1f5f71a682aeb 100644 (file)
@@ -206,7 +206,7 @@ wxActiveX::wxActiveX(wxWindow * parent, wxString progId, wxWindowID id,
 {
        m_bAmbientUserMode = true;
     m_docAdviseCookie = 0;
-       CreateActiveX((LPOLESTR) wxConvUTF8.cMB2WC(progId).data());
+       CreateActiveX((LPOLESTR) (const wchar_t*)progId.wc_str(wxConvUTF8));
 }
 
 wxActiveX::~wxActiveX()