X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d7dafc91ad68448a481b78df798a7bc85a92a60..c48792de4abe190910c0cb212c5df44d2ef87a7e:/samples/oleauto/oleauto.cpp?ds=sidebyside diff --git a/samples/oleauto/oleauto.cpp b/samples/oleauto/oleauto.cpp index 05e9da16ad..d50c7ecd4b 100644 --- a/samples/oleauto/oleauto.cpp +++ b/samples/oleauto/oleauto.cpp @@ -40,6 +40,10 @@ #error "Sorry, this sample works under Windows only." #endif +#ifdef __WATCOMC__ +#error "Sorry, Watcom C++ does not support wxAutomationObject." +#endif + // ---------------------------------------------------------------------------- // ressources // ---------------------------------------------------------------------------- @@ -211,10 +215,12 @@ void MyFrame::OnTest(wxCommandEvent& WXUNUSED(event)) 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 }