MyEquation.h
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
源码类别:

ActiveX/DCOM/ATL

开发平台:

Visual C++

  1. // MyEquation.h : Declaration of the CMyEquation
  2. #ifndef __MYEQUATION_H_
  3. #define __MYEQUATION_H_
  4. #include "resource.h"       // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CMyEquation
  7. class ATL_NO_VTABLE CMyEquation : 
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CMyEquation, &CLSID_MyEquation>,
  10. public ISupportErrorInfo,
  11. public IDispatchImpl<IMyEquation, &IID_IMyEquation, &LIBID_EXEQUATIONLib>
  12. {
  13. public:
  14. CMyEquation()
  15. {
  16. }
  17. DECLARE_REGISTRY_RESOURCEID(IDR_MYEQUATION)
  18. DECLARE_PROTECT_FINAL_CONSTRUCT()
  19. BEGIN_COM_MAP(CMyEquation)
  20. COM_INTERFACE_ENTRY(IMyEquation)
  21. COM_INTERFACE_ENTRY(IDispatch)
  22. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  23. END_COM_MAP()
  24. // ISupportsErrorInfo
  25. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  26. // IMyEquation
  27. public:
  28. STDMETHOD(solve)(Equation* equ,Root** roots);
  29. };
  30. #endif //__MYEQUATION_H_