ExDAL.idl
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:2k
- // ExDAL.idl : IDL source for ExDAL.dll
- //
- // This file will be processed by the MIDL tool to
- // produce the type library (ExDAL.tlb) and marshalling code.
- import "oaidl.idl";
- import "ocidl.idl";
- typedef struct DTOBook
- {
- UINT BookIsnb;
- BSTR BookName;
- BSTR BookAuthor;
- }DTOBook;
- [
- object,
- uuid(F270E926-96ED-43BF-AF85-78E2A4BF3B13),
- dual,
- helpstring("IDALMyBooks Interface"),
- pointer_default(unique)
- ]
- interface IDALMyBooks : 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(6), helpstring("property UID")] HRESULT UID([out, retval] BSTR *pVal);
- [propput, id(6), helpstring("property UID")] HRESULT UID([in] BSTR newVal);
- [propget, id(7), helpstring("property PWD")] HRESULT PWD([out, retval] BSTR *pVal);
- [propput, id(7), helpstring("property PWD")] HRESULT PWD([in] BSTR newVal);
- [propget, id(8), helpstring("property DataSource")] HRESULT DataSource([out, retval] BSTR *pVal);
- [propput, id(8), helpstring("property DataSource")] HRESULT DataSource([in] BSTR newVal);
- };
- [
- uuid(E97DB0EC-FE58-404A-A53F-DA87F2DC6CFC),
- version(1.0),
- helpstring("ExDAL 1.0 Type Library")
- ]
- library EXDALLib
- {
- importlib("stdole32.tlb");
- importlib("stdole2.tlb");
- [
- uuid(7F977615-759D-4A23-AB05-92CB1DDB2172),
- helpstring("DALMyBooks Class")
- ]
- coclass DALMyBooks
- {
- [default] interface IDALMyBooks;
- };
- };