git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45247
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
WXDLLEXPORT BSTR wxConvertStringToOle(const wxString& str)
{
-/*
- unsigned int len = strlen((const char*) str);
- unsigned short* s = new unsigned short[len*2+2];
- unsigned int i;
- memset(s, 0, len*2+2);
- for (i=0; i < len; i++)
- s[i*2] = str[i];
-*/
- wxBasicString bstr(str.mb_str());
- return bstr.Get();
+ return wxBasicString(str).Get();
}
WXDLLEXPORT wxString wxConvertStringFromOle(BSTR bStr)