#ifndef _WX_AUTOMTN_H_
#define _WX_AUTOMTN_H_
+#include "wx/defs.h"
+
+#if wxUSE_OLE_AUTOMATION
+
#include "wx/object.h"
#include "wx/variant.h"
* Wraps up an IDispatch pointer and invocation; does variant conversion.
*/
-class WXDLLEXPORT wxAutomationObject: public wxObject
+class WXDLLIMPEXP_CORE wxAutomationObject: public wxObject
{
public:
wxAutomationObject(WXIDISPATCH* dispatchPtr = NULL);
- ~wxAutomationObject();
+ virtual ~wxAutomationObject();
// Set/get dispatch pointer
- inline void SetDispatchPtr(WXIDISPATCH* dispatchPtr) { m_dispatchPtr = dispatchPtr; };
+ inline void SetDispatchPtr(WXIDISPATCH* dispatchPtr) { m_dispatchPtr = dispatchPtr; }
inline WXIDISPATCH* GetDispatchPtr() const { return m_dispatchPtr; }
// Get a dispatch pointer from the current object associated
DECLARE_NO_COPY_CLASS(wxAutomationObject)
};
+#endif // wxUSE_OLE_AUTOMATION
-#endif
- // _WX_AUTOMTN_H_
+#endif // _WX_AUTOMTN_H_