EventDemo.idl
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- // EventDemo.idl : IDL source for EventDemo.dll
- //
- // This file will be processed by the MIDL tool to
- // produce the type library (EventDemo.tlb) and marshalling code.
- import "oaidl.idl";
- import "ocidl.idl";
- [
- object,
- uuid(691B531E-AF78-4B2E-851C-FEE7196E8853),
- dual,
- helpstring("IMyAbc Interface"),
- pointer_default(unique)
- ]
- interface IMyAbc : IDispatch
- {
- [id(1), helpstring("method add")] HRESULT add([in] int a, [in] int b, [out] int* c );
- };
- [
- uuid(C26E3137-7CDB-48F9-ACCB-95A272C68E67),
- version(1.0),
- helpstring("EventDemo 1.0 Type Library")
- ]
- library EVENTDEMOLib
- {
- importlib("stdole32.tlb");
- importlib("stdole2.tlb");
- [
- uuid(C26E3137-7CDB-48F9-ACCB-95A272C68E68),
- helpstring("adfasdf")
- ]
- dispinterface _MyEvent //interface MyEvent: IDispatch
- {
- properties:
- methods:
- [id(1),helpstring("adsf")] HRESULT OnLog([in] BSTR msg);
- }
- [
- uuid(1DB8D7EC-3D9E-4FA6-AE97-5295EA278F2A),
- helpstring("MyAbc Class")
- ]
- coclass MyAbc
- {
- [default] interface IMyAbc;
- [default,source] dispinterface _MyEvent;
- };
- };