BooksDAL.idl
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:2k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- // BooksDAL.idl : IDL source for BooksDAL.dll
- //
- // This file will be processed by the MIDL tool to
- // produce the type library (BooksDAL.tlb) and marshalling code.
- import "oaidl.idl";
- import "ocidl.idl";
- typedef struct DTOBook
- {
- UINT BookIsnb;
- BSTR BookName;
- BSTR BookAuthor;
- }DTOBook;
- [
- object,
- uuid(A15D55B0-457B-447F-8400-05146750B407),
- dual,
- helpstring("IDALMyBools Interface"),
- pointer_default(unique)
- ]
- interface IDALMyBools : IDispatch
- {
- [id(1), helpstring("method GetBookByIsbn")] HRESULT GetBookByIsbn([in] UINT bookisbn,[out] DTOBook** mybook);
- [id(2), helpstring("method QueryAllBook")] HRESULT QueryAllBook([out] DTOBook** allBook);
- [id(3), helpstring("method SaveBook")] HRESULT SaveBook([in] DTOBook* bookdata, [out] UINT* pResult);
- [id(4), helpstring("method DeleteBookById")] HRESULT DeleteBookById([in] UINT id, [out] UINT* iResult);
- [id(5), helpstring("method Update")] HRESULT Update([in] DTOBook* Book, [out] UINT* iResult);
- [propget, id(7), helpstring("property UID")] HRESULT UID([out, retval] BSTR *pVal);
- [propput, id(7), helpstring("property UID")] HRESULT UID([in] BSTR newVal);
- [propget, id(8), helpstring("property PWD")] HRESULT PWD([out, retval] BSTR *pVal);
- [propput, id(8), helpstring("property PWD")] HRESULT PWD([in] BSTR newVal);
- [propget, id(9), helpstring("property DataSource")] HRESULT DataSource([out, retval] BSTR *pVal);
- [propput, id(9), helpstring("property DataSource")] HRESULT DataSource([in] BSTR newVal);
- };
- [
- uuid(1BFDA612-BD12-4C48-A228-DF0437702079),
- version(1.0),
- helpstring("BooksDAL 1.0 Type Library")
- ]
- library BOOKSDALLib
- {
- importlib("stdole32.tlb");
- importlib("stdole2.tlb");
- [
- uuid(E62D5912-87D8-46BD-983A-3730881D5204),
- helpstring("DALMyBools Class")
- ]
- coclass DALMyBools
- {
- [default] interface IDALMyBools;
- };
- };