]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/oleauto/oleauto.cpp
removed obsolete file
[wxWidgets.git] / samples / oleauto / oleauto.cpp
index 05e9da16ad510c0f2fcd19d32a163161d0242291..d50c7ecd4be619430a08d5d008fa46d12c66d9ba 100644 (file)
 #error "Sorry, this sample works under Windows only."
 #endif
 
 #error "Sorry, this sample works under Windows only."
 #endif
 
+#ifdef __WATCOMC__
+#error "Sorry, Watcom C++ does not support wxAutomationObject."
+#endif
+
 // ----------------------------------------------------------------------------
 // ressources
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 // ressources
 // ----------------------------------------------------------------------------
@@ -211,10 +215,12 @@ void MyFrame::OnTest(wxCommandEvent& WXUNUSED(event))
                wxMessageBox("Could not set active cell value.");
                return;
        }
                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;
        }
        {
                wxMessageBox("Could not put Bold property to active cell.");
                return;
        }
+#endif
 }
 
 }