MyAbc.idl
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
- // MyAbc.idl : IDL source for MyAbc.dll
- //
- // This file will be processed by the MIDL tool to
- // produce the type library (MyAbc.tlb) and marshalling code.
- import "oaidl.idl";
- import "ocidl.idl";
- [
- object,
- uuid(06585D57-FD99-4D38-9669-CB6232020A40),
- dual,
- helpstring("IAbc Interface"),
- pointer_default(unique)
- ]
- interface IAbc : IDispatch
- {
- [id(1), helpstring("method add")] HRESULT add([in] int a, [in] int b, [out] int* c);
- };
- [
- uuid(A10B1048-F6DC-43F8-B572-033C12E45600),
- version(1.0),
- helpstring("MyAbc 1.0 Type Library")
- ]
- library MYABCLib
- {
- importlib("stdole32.tlb");
- importlib("stdole2.tlb");
- [
- uuid(9E09D602-72BA-4D65-B0D3-1C68A77B63CC),
- helpstring("_IAbcEvents Interface")
- ]
- dispinterface _IAbcEvents
- {
- properties:
- methods:
- [id(1), helpstring("method add")] HRESULT WriteLog([in] BSTR msge);
- };
- [
- uuid(A8652099-D95C-4D23-A75C-FA00F0BF8703),
- helpstring("Abc Class")
- ]
- coclass Abc
- {
- [default] interface IAbc;
- [default, source] dispinterface _IAbcEvents;
- };
- };