git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16071
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxAutoOleInterface<IHTMLDocument2> doc(IID_IHTMLDocument2, disp);
if (doc.Ok())
{
wxAutoOleInterface<IHTMLDocument2> doc(IID_IHTMLDocument2, disp);
if (doc.Ok())
- doc->put_charset((BSTR) wxConvUTF8.cMB2WC(charset).data());
+ doc->put_charset((BSTR) (const wchar_t*)charset.wc_str(wxConvUTF8));
headers.vt = VT_EMPTY;
HRESULT hret = 0;
headers.vt = VT_EMPTY;
HRESULT hret = 0;
- hret = m_webBrowser->Navigate((BSTR) wxConvUTF8.cMB2WC(url).data(),
+ hret = m_webBrowser->Navigate((BSTR) (const wchar_t*)url.wc_str(wxConvUTF8),
&navFlag, &targetFrame, &postData, &headers);
};
bool wxIEHtmlWin::LoadString(wxString html)
{
&navFlag, &targetFrame, &postData, &headers);
};
bool wxIEHtmlWin::LoadString(wxString html)
{
- string s = html.c_str();
+ string s = html.mb_str(wxConvUTF8);
istringstream *is = new istringstream(s);
return LoadStream(is);
};
istringstream *is = new istringstream(s);
return LoadStream(is);
};
{
m_bAmbientUserMode = true;
m_docAdviseCookie = 0;
{
m_bAmbientUserMode = true;
m_docAdviseCookie = 0;
- CreateActiveX((LPOLESTR) wxConvUTF8.cMB2WC(progId).data());
+ CreateActiveX((LPOLESTR) (const wchar_t*)progId.wc_str(wxConvUTF8));
}
wxActiveX::~wxActiveX()
}
wxActiveX::~wxActiveX()