exStruct.idl
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- // exStruct.idl : IDL source for exStruct.dll
- //
- // This file will be processed by the MIDL tool to
- // produce the type library (exStruct.tlb) and marshalling code.
- import "oaidl.idl";
- import "ocidl.idl";
- typedef struct StPerson
- {
- BSTR name;
- UINT age;
- BSTR sex;
- }StPerson;
- [
- object,
- uuid(3FEEA45C-DB9F-47AF-BED6-80E1520A3B0F),
- dual,
- helpstring("IMystruct Interface"),
- pointer_default(unique)
- ]
- interface IMystruct : IDispatch
- {
- [id(1), helpstring("method GetPersonById")] HRESULT GetPersonById([in] UINT id,[out] StPerson** Result);
- [id(2), helpstring("method GetAllPerson")] HRESULT GetAllPerson([out] UINT* number,[out] StPerson** Result);
- [id(3), helpstring("method SavePerson")] HRESULT SavePerson([in] UINT number,[in] StPerson* Result,[out] UINT* pResult);
- };
- [
- uuid(90333778-D3B1-4928-82B7-72745E888D1E),
- version(1.0),
- helpstring("exStruct 1.0 Type Library")
- ]
- library EXSTRUCTLib
- {
- importlib("stdole32.tlb");
- importlib("stdole2.tlb");
- [
- uuid(F476CC90-E3B2-4DB6-8988-8A0914D12EF7),
- helpstring("Mystruct Class")
- ]
- coclass Mystruct
- {
- [default] interface IMystruct;
- };
- };