IUnknownDemo.idl
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- // IUnknownDemo.idl : IDL source for IUnknownDemo.dll
- //
- // This file will be processed by the MIDL tool to
- // produce the type library (IUnknownDemo.tlb) and marshalling code.
- import "oaidl.idl";
- import "ocidl.idl";
- [
- object,
- uuid(7E4933F5-9F96-4D4C-ABF1-8C6E0B4C8EE9),
- helpstring("IIMyObj Interface"),
- pointer_default(unique)
- ]
- interface IIMyObj : IUnknown
- {
- [helpstring("asdf")]HRESULT add([in] int a, [in] int b, [out] int* c);
- [helpstring("method sub")] HRESULT sub([in] VARIANT a, [in] VARIANT b,[out ] VARIANT* c);
- };
- [ object,
- uuid(7E4933F5-9F96-4D4C-ABF1-8C6E0B4C8EEA),
- helpstring("asdf")
- ]
- interface IHello:IUnknown
- {
- [helpstring("string")] HRESULT hello([in] BSTR name,[out] BSTR* result);
- };
- [
- uuid(E5739F31-7607-41F3-A60C-21A25ACA0A88),
- version(1.0),
- helpstring("IUnknownDemo 1.0 Type Library")
- ]
- library IUNKNOWNDEMOLib
- {
- importlib("stdole32.tlb");
- importlib("stdole2.tlb");
- [
- uuid(864CDFA4-2E80-48AF-B366-CC9228E364B9),
- helpstring("IMyObj Class")
- ]
- coclass IMyObj
- {
- [default] interface IIMyObj;
- interface IHello;
- };
- };