else if (type == wxT("bool"))
{
oleVariant.vt = VT_BOOL;
- oleVariant.boolVal = variant.GetBool();
+ 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;