#error "Sorry, this sample works under Windows only."
#endif
+#ifdef __WATCOMC__
+#error "Sorry, Watcom C++ does not support wxAutomationObject."
+#endif
+
// ----------------------------------------------------------------------------
// ressources
// ----------------------------------------------------------------------------
wxMessageBox("Could not set active cell value.");
return;
}
- if (!excelObject.PutProperty("ActiveCell.Font.Bold", (bool) TRUE))
+#ifdef HAVE_BOOL
+ if (!excelObject.PutProperty("ActiveCell.Font.Bold", wxVariant((bool) TRUE)) )
{
wxMessageBox("Could not put Bold property to active cell.");
return;
}
+#endif
}