CLSID clsId;
IUnknown * pUnk = NULL;
- wxBasicString unicodeName(classId.mb_str());
+ wxBasicString unicodeName(classId);
if (FAILED(CLSIDFromProgID((BSTR) unicodeName, &clsId)))
{
CLSID clsId;
- wxBasicString unicodeName(classId.mb_str());
+ wxBasicString unicodeName(classId);
if (FAILED(CLSIDFromProgID((BSTR) unicodeName, &clsId)))
{
unsigned short dosTime = 0;
VariantTimeToDosDateTime(oleVariant.date, & dosDate, & dosTime);
- long dosDateTime = (dosDate << 16) || dosTime;
+ long dosDateTime = (dosDate << 16) | dosTime;
wxDateTime date;
date.SetFromDOS(dosDateTime);
variant = date;