virtual ~wxAutomationObject();
// Set/get dispatch pointer
- inline void SetDispatchPtr(WXIDISPATCH* dispatchPtr) { m_dispatchPtr = dispatchPtr; }
- inline WXIDISPATCH* GetDispatchPtr() const { return m_dispatchPtr; }
+ void SetDispatchPtr(WXIDISPATCH* dispatchPtr) { m_dispatchPtr = dispatchPtr; }
+ WXIDISPATCH* GetDispatchPtr() const { return m_dispatchPtr; }
+ bool IsOk() const { return m_dispatchPtr != NULL; }
// Get a dispatch pointer from the current object associated
// with a class id, such as "Excel.Application"
public:
WXIDISPATCH* m_dispatchPtr;
- DECLARE_NO_COPY_CLASS(wxAutomationObject)
+ wxDECLARE_NO_COPY_CLASS(wxAutomationObject);
};
#endif // wxUSE_OLE_AUTOMATION