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