component.idl
上传用户:bjlvip
上传日期:2010-02-08
资源大小:744k
文件大小:1k
- // component.idl
- import "unknwn.idl";
- import "oaidl.idl";
- #define DISPID_NEWENUM -4
- #define DISPID_VALUE 0
- [ object, uuid(10000001-0001-0000-0000-000000000001), dual ]
- interface INumbers : IDispatch
- {
- [propget, id(DISPID_NEWENUM), restricted] HRESULT _NewEnum([out, retval] IUnknown** pVal);
- [propget] HRESULT Count([out, retval] long *pVal);
- [propget, id(DISPID_VALUE)] HRESULT Item(long index, [out, retval] long* pVal);
- HRESULT Add(long Val);
- HRESULT Remove(long index);
- }
- [ uuid(10000003-0000-0000-0000-000000000001),
- helpstring("Inside COM+ Component Type Library"),
- version(1.0) ]
- library Component
- {
- importlib("stdole32.tlb");
- interface INumbers;
- [ uuid(10000002-0000-0000-0000-000000000001) ]
- coclass InsideCOM
- {
- interface INumbers;
- };
- };