for (i = 0; i < noArgs; i++)
{
// Again, reverse args
- wxVariant& theVariant = INVOKEARG((noArgs-1) - i);
- if (!ConvertVariantToOle(theVariant, oleArgs[i]))
+ if (!ConvertVariantToOle(INVOKEARG((noArgs-1) - i), oleArgs[i]))
return FALSE; // TODO: clean up memory at this point
}
else if (type == "bool")
{
oleVariant.vt = VT_BOOL;
+#ifdef __WATCOMC__
+ oleVariant.bool = variant.GetBool();
+#else
oleVariant.boolVal = variant.GetBool();
+#endif
}
else if (type == "string")
{
case VT_BOOL:
{
+#ifdef __WATCOMC__
+ variant = (bool) (oleVariant.bool != 0);
+#else
variant = (bool) (oleVariant.boolVal != 0);
+#endif
break;
}
case VT_R8: