#if wxUSE_DATETIME
#include "wx/datetime.h"
-#endif // wxUSE_TIMEDATE
+#endif // wxUSE_DATETIME
static void ClearVariant(VARIANTARG *pvarg) ;
static void ReleaseVariant(VARIANTARG *pvarg) ;
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;
{
VARTYPE vt;
VARIANTARG _huge *pvargArray;
- long lLBound, lUBound, l;
+ LONG lLBound, lUBound, l;
vt = (VARTYPE)(pvarg->vt & 0xfff); // mask off flags