MyEquation.h
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- // MyEquation.h : Declaration of the CMyEquation
- #ifndef __MYEQUATION_H_
- #define __MYEQUATION_H_
- #include "resource.h" // main symbols
- /////////////////////////////////////////////////////////////////////////////
- // CMyEquation
- class ATL_NO_VTABLE CMyEquation :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<CMyEquation, &CLSID_MyEquation>,
- public ISupportErrorInfo,
- public IDispatchImpl<IMyEquation, &IID_IMyEquation, &LIBID_EXEQUATIONLib>
- {
- public:
- CMyEquation()
- {
- }
- DECLARE_REGISTRY_RESOURCEID(IDR_MYEQUATION)
- DECLARE_PROTECT_FINAL_CONSTRUCT()
- BEGIN_COM_MAP(CMyEquation)
- COM_INTERFACE_ENTRY(IMyEquation)
- COM_INTERFACE_ENTRY(IDispatch)
- COM_INTERFACE_ENTRY(ISupportErrorInfo)
- END_COM_MAP()
- // ISupportsErrorInfo
- STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
- // IMyEquation
- public:
- STDMETHOD(solve)(Equation* equ,Root** roots);
- };
- #endif //__MYEQUATION_H_