Added wxUSE_VARIANT and the related checks, also added wxUSE_OLE_AUTOMATION
to guard wxAutomationObject code which depends on wxVariant git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
#ifndef _WX_AUTOMTN_H_
|
||||
#define _WX_AUTOMTN_H_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_OLE_AUTOMATION
|
||||
|
||||
#include "wx/object.h"
|
||||
#include "wx/variant.h"
|
||||
|
||||
@@ -92,6 +96,6 @@ public:
|
||||
DECLARE_NO_COPY_CLASS(wxAutomationObject)
|
||||
};
|
||||
|
||||
#endif // wxUSE_OLE_AUTOMATION
|
||||
|
||||
#endif
|
||||
// _WX_AUTOMTN_H_
|
||||
#endif // _WX_AUTOMTN_H_
|
||||
|
@@ -228,11 +228,13 @@ private:
|
||||
OLECHAR *m_wzBuf; // actual string
|
||||
};
|
||||
|
||||
#if wxUSE_VARIANT
|
||||
// Convert variants
|
||||
class WXDLLIMPEXP_BASE wxVariant;
|
||||
|
||||
WXDLLEXPORT bool wxConvertVariantToOle(const wxVariant& variant, VARIANTARG& oleVariant);
|
||||
WXDLLEXPORT bool wxConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant& variant);
|
||||
#endif // wxUSE_VARIANT
|
||||
|
||||
// Convert string to Unicode
|
||||
WXDLLEXPORT BSTR wxConvertStringToOle(const wxString& str);
|
||||
|
Reference in New Issue
Block a user