Abc.h
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
- // Abc.h : Declaration of the CAbc
- #ifndef __ABC_H_
- #define __ABC_H_
- #include "resource.h" // main symbols
- #include "MyAbcCP.h"
- /////////////////////////////////////////////////////////////////////////////
- // CAbc
- class ATL_NO_VTABLE CAbc :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<CAbc, &CLSID_Abc>,
- public IConnectionPointContainerImpl<CAbc>,
- public IDispatchImpl<IAbc, &IID_IAbc, &LIBID_MYABCLib>,
- public CProxy_IAbcEvents< CAbc >
- {
- public:
- CAbc()
- {
- }
- DECLARE_REGISTRY_RESOURCEID(IDR_ABC)
- DECLARE_PROTECT_FINAL_CONSTRUCT()
- BEGIN_COM_MAP(CAbc)
- COM_INTERFACE_ENTRY(IAbc)
- COM_INTERFACE_ENTRY(IDispatch)
- COM_INTERFACE_ENTRY(IConnectionPointContainer)
- COM_INTERFACE_ENTRY_IMPL(IConnectionPointContainer)
- END_COM_MAP()
- BEGIN_CONNECTION_POINT_MAP(CAbc)
- CONNECTION_POINT_ENTRY(DIID__IAbcEvents)
- END_CONNECTION_POINT_MAP()
- // IAbc
- public:
- STDMETHOD(add)(/*[in]*/ int a, /*[in]*/ int b, /*[out]*/ int* c);
- };
- #endif //__ABC_H_