DispCallBack.idl
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- // DispCallBack.idl : IDL source for DispCallBack.dll
- //
- // This file will be processed by the MIDL tool to
- // produce the type library (DispCallBack.tlb) and marshalling code.
- import "oaidl.idl";
- import "ocidl.idl";
- [
- object,
- uuid(8BF1F3AA-6C46-4042-86EF-781E17040E08),
- dual,
- helpstring("IMyAbc Interface"),
- pointer_default(unique)
- ]
- interface ILog : IDispatch
- {
- [id(1), helpstring("method WriteLog")] HRESULT WriteLog([in] BSTR message);
- };
- [
- object,
- uuid(8BF1F3AA-6C46-4042-86ED-781E17040E08),
- dual,
- helpstring("IMyAbc Interface"),
- pointer_default(unique)
- ]
- interface IMyAbc : IDispatch
- {
- [id(1), helpstring("method SetLog")] HRESULT SetLog([in] ILog* mylog);
- [id(2), helpstring("method add")] HRESULT add([in] int a, [in] int b, [out] int* c );
- };
- [
- uuid(4AD70D9A-9B18-481D-A930-68DC040ACBA4),
- version(1.0),
- helpstring("DispCallBack 1.0 Type Library")
- ]
- library DISPCALLBACKLib
- {
- importlib("stdole32.tlb");
- importlib("stdole2.tlb");
- [
- uuid(AA8A2280-F360-4520-9611-83A04FF7AD15),
- helpstring("MyAbc Class")
- ]
- coclass MyAbc
- {
- [default] interface IMyAbc;
- };
- };