const wxColour& col,
Unit fontUnit)
{
- m_font = new Font(name, size, style, fontUnit);
+ m_font = new Font(name.wc_str(), size, style, fontUnit);
m_textBrush = new SolidBrush(wxColourToColor(col));
}
VARIANT level;
VariantInit(&level);
V_VT(&level) = VT_EMPTY;
- window->execScript(SysAllocString(javascript), SysAllocString(language), &level);
+ window->execScript(SysAllocString(javascript.wc_str()),
+ SysAllocString(language).wc_str(),
+ &level);
}
document->Release();
}
wxFAIL_MSG("Could not retrive internet session");
}
- HRESULT hr = session->RegisterNameSpace(cf, CLSID_FileProtocol, handler->GetName(), 0, NULL, 0);
+ HRESULT hr = session->RegisterNameSpace(cf, CLSID_FileProtocol,
+ handler->GetName().wc_str(),
+ 0, NULL, 0);
if(FAILED(hr))
{
wxFAIL_MSG("Could not register protocol");