MyAbc.h
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
- // MyAbc.h : Declaration of the CMyAbc
- #ifndef __MYABC_H_
- #define __MYABC_H_
- #include "resource.h" // main symbols
- #include "EventDemoCP.h"
- /////////////////////////////////////////////////////////////////////////////
- // CMyAbc
- class ATL_NO_VTABLE CMyAbc :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<CMyAbc, &CLSID_MyAbc>,
- public IDispatchImpl<IMyAbc, &IID_IMyAbc, &LIBID_EVENTDEMOLib>,
- public CProxy_MyEvent< CMyAbc >,
- public IConnectionPointContainerImpl<CMyAbc>
- {
- public:
- CMyAbc()
- {
- }
- DECLARE_REGISTRY_RESOURCEID(IDR_MYABC)
- DECLARE_PROTECT_FINAL_CONSTRUCT()
- BEGIN_COM_MAP(CMyAbc)
- COM_INTERFACE_ENTRY(IMyAbc)
- COM_INTERFACE_ENTRY(IDispatch)
- COM_INTERFACE_ENTRY_IMPL(IConnectionPointContainer)
- END_COM_MAP()
- // IMyAbc
- public:
- STDMETHOD(add)(/*[in]*/ int a, /*[in]*/ int b, /*[out]*/ int* c );
- public :
- BEGIN_CONNECTION_POINT_MAP(CMyAbc)
- CONNECTION_POINT_ENTRY(DIID__MyEvent)
- END_CONNECTION_POINT_MAP()
- };
- #endif //__MYABC_H_