DALMyBools.h
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- // DALMyBools.h : Declaration of the CDALMyBools
- #ifndef __DALMYBOOLS_H_
- #define __DALMYBOOLS_H_
- #include "resource.h" // main symbols
- #import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","adEOF")
- /////////////////////////////////////////////////////////////////////////////
- // CDALMyBools
- class ATL_NO_VTABLE CDALMyBools :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<CDALMyBools, &CLSID_DALMyBools>,
- public ISupportErrorInfo,
- public IDispatchImpl<IDALMyBools, &IID_IDALMyBools, &LIBID_BOOKSDALLib>
- {
- public:
- CDALMyBools()
- {
- }
- DECLARE_REGISTRY_RESOURCEID(IDR_DALMYBOOLS)
- DECLARE_PROTECT_FINAL_CONSTRUCT()
- BEGIN_COM_MAP(CDALMyBools)
- COM_INTERFACE_ENTRY(IDALMyBools)
- COM_INTERFACE_ENTRY(IDispatch)
- COM_INTERFACE_ENTRY(ISupportErrorInfo)
- END_COM_MAP()
- // ISupportsErrorInfo
- STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
- // IDALMyBools
- public:
- STDMETHOD(Update)(/*[in]*/ DTOBook* Book, /*[out]*/ UINT* iResult);
- STDMETHOD(DeleteBookById)(/*[in]*/ UINT id, /*[out]*/ UINT* iResult);
- STDMETHOD(SaveBook)(/*[in]*/ DTOBook* bookdata, /*[out]*/ UINT* pResult);
- STDMETHOD(QueryAllBook)(/*[out]*/ DTOBook** allBook);
- STDMETHOD(GetBookByIsbn)(/*[in]*/ UINT bookisbn,/*[out]*/ DTOBook** mybook);
- };
- #endif //__DALMYBOOLS_H_