Myfirst.h
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
- // Myfirst.h : Declaration of the CMyfirst
- #ifndef __MYFIRST_H_
- #define __MYFIRST_H_
- #include "resource.h" // main symbols
- /////////////////////////////////////////////////////////////////////////////
- // CMyfirst
- class ATL_NO_VTABLE CMyfirst :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<CMyfirst, &CLSID_Myfirst>,
- public IMyfirst,
- public IHello
- {
- public:
- CMyfirst()
- {
- }
- DECLARE_REGISTRY_RESOURCEID(IDR_MYFIRST)
- DECLARE_PROTECT_FINAL_CONSTRUCT()
- BEGIN_COM_MAP(CMyfirst)
- COM_INTERFACE_ENTRY(IMyfirst)
- COM_INTERFACE_ENTRY(IHello)
- END_COM_MAP()
- // IMyfirst
- public:
- STDMETHOD(add)(/*[in]*/ int a, /*[in]*/ int b, /*[out]*/ int* c);
- STDMETHOD(sub)(/*[in]*/ int a, /*[in]*/ int b, /*[out]*/ int* c);
- STDMETHOD(hello)(BSTR name, BSTR* result);
- };
- #endif //__MYFIRST_H_