oleVariant.vt = VT_I4;
oleVariant.lVal = variant.GetLong() ;
}
- // cVal not always present
-#ifndef __GNUWIN32__
else if (type == wxT("char"))
{
oleVariant.vt=VT_I1; // Signed Char
oleVariant.cVal=variant.GetChar();
}
-#endif
else if (type == wxT("double"))
{
oleVariant.vt = VT_R8;
else if (type == wxT("bool"))
{
oleVariant.vt = VT_BOOL;
- // 'bool' required for VC++ 4 apparently
-#if (defined(__VISUALC__) && (__VISUALC__ <= 1000))
- oleVariant.bool = variant.GetBool();
-#else
- oleVariant.boolVal = variant.GetBool();
-#endif
+ oleVariant.boolVal = variant.GetBool() ? VARIANT_TRUE : VARIANT_FALSE;
}
else if (type == wxT("string"))
{
variant = oleVariant.boolVal != 0;
break;
+ case VT_R4:
+ variant = oleVariant.fltVal;
+ break;
+
case VT_R8:
variant = oleVariant.dblVal;
break;