MyVariant.h
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
- // MyVariant.h : Declaration of the CMyVariant
- #ifndef __MYVARIANT_H_
- #define __MYVARIANT_H_
- #include "resource.h" // main symbols
- /////////////////////////////////////////////////////////////////////////////
- // CMyVariant
- class ATL_NO_VTABLE CMyVariant :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<CMyVariant, &CLSID_MyVariant>,
- public IDispatchImpl<IMyVariant, &IID_IMyVariant, &LIBID_EXVARIANTLib>
- {
- public:
- CMyVariant()
- {
- }
- DECLARE_REGISTRY_RESOURCEID(IDR_MYVARIANT)
- DECLARE_PROTECT_FINAL_CONSTRUCT()
- BEGIN_COM_MAP(CMyVariant)
- COM_INTERFACE_ENTRY(IMyVariant)
- COM_INTERFACE_ENTRY(IDispatch)
- END_COM_MAP()
- // IMyVariant
- public:
- STDMETHOD(add)(/*[in]*/ VARIANT a, /*[in]*/ VARIANT b, /*[out]*/ VARIANT* c);
- };
- #endif //__MYVARIANT_H_