Mystruct.h
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
- // Mystruct.h : Declaration of the CMystruct
- #ifndef __MYSTRUCT_H_
- #define __MYSTRUCT_H_
- #include "resource.h" // main symbols
- /////////////////////////////////////////////////////////////////////////////
- // CMystruct
- class ATL_NO_VTABLE CMystruct :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<CMystruct, &CLSID_Mystruct>,
- public IDispatchImpl<IMystruct, &IID_IMystruct, &LIBID_EXSTRUCTLib>
- {
- public:
- CMystruct()
- {
- }
- DECLARE_REGISTRY_RESOURCEID(IDR_MYSTRUCT)
- DECLARE_PROTECT_FINAL_CONSTRUCT()
- BEGIN_COM_MAP(CMystruct)
- COM_INTERFACE_ENTRY(IMystruct)
- COM_INTERFACE_ENTRY(IDispatch)
- END_COM_MAP()
- // IMystruct
- public:
- STDMETHOD(SavePerson)(/*[in]*/ UINT number,/*[in]*/ StPerson* Result,/*[out]*/ UINT* pResult);
- STDMETHOD(GetAllPerson)(/*[out]*/ UINT* number,/*[out]*/ StPerson** Result);
- STDMETHOD(GetPersonById)(/*[in]*/ UINT id,/*[out]*/ StPerson** Result);
- };
- #endif //__MYSTRUCT_H_