/* * $Id: Awk.h,v 1.2 2006-12-09 17:36:27 bacon Exp $ */ #ifndef _ASE_COM_AWK_H_ #define _ASE_COM_AWK_H_ #if _MSC_VER > 1000 #pragma once #endif #include "resource.h" #include "ase.h" #include "awk_cp.h" #include ///////////////////////////////////////////////////////////////////////////// // CAwk class CAwk : public IDispatchImpl, public ISupportErrorInfo, /*public CComObjectRoot,*/ public CComObjectRootEx, public CComCoClass, public IConnectionPointContainerImpl, public IProvideClassInfo2Impl<&CLSID_Awk, &DIID_IAwkEvents, &LIBID_ASELib>, public CProxyIAwkEvents< CAwk > { public: ase_awk_t* handle; IBuffer* read_source_buf; IBuffer* write_source_buf; ase_size_t read_source_pos; ase_size_t read_source_len; IBuffer* write_extio_buf; public: CAwk(); ~CAwk (); BEGIN_COM_MAP(CAwk) COM_INTERFACE_ENTRY(IDispatch) COM_INTERFACE_ENTRY(IAwk) COM_INTERFACE_ENTRY(ISupportErrorInfo) COM_INTERFACE_ENTRY_IMPL(IConnectionPointContainer) COM_INTERFACE_ENTRY(IProvideClassInfo) COM_INTERFACE_ENTRY(IProvideClassInfo2) END_COM_MAP() BEGIN_CONNECTION_POINT_MAP(CAwk) CONNECTION_POINT_ENTRY(DIID_IAwkEvents) END_CONNECTION_POINT_MAP() //DECLARE_NOT_AGGREGATABLE(CAwk) // Remove the comment from the line above if you don't want your object to // support aggregation. DECLARE_REGISTRY_RESOURCEID(IDR_AWK) // ISupportsErrorInfo STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid); // IAwk public: HRESULT __stdcall Parse (int* ret); HRESULT __stdcall Run (int* ret); }; #endif