component.idl
上传用户:bjlvip
上传日期:2010-02-08
资源大小:744k
文件大小:1k
- // component.idl
- import "unknwn.idl";
- [ object, uuid(10000011-0000-0000-0000-000000000001),
- oleautomation ]
- interface IPrime : IUnknown
- {
- HRESULT GetNextPrime([out, retval] int* retval);
- }
- [ object, uuid(10000010-0000-0000-0000-000000000001), oleautomation ]
- interface IPrimeFactory : IUnknown
- {
- HRESULT CreatePrime(int start_number, [out, retval] IPrime** ppPrime);
- }
- [ uuid(10000012-0000-0000-0000-000000000001),
- helpstring("Prime Number Component Type Library"),
- version(1.0) ]
- library Component
- {
- importlib("stdole32.tlb");
- interface IPrime;
- interface IPrimeFactory;
- [ uuid(10000013-0000-0000-0000-000000000001) ]
- coclass Prime
- {
- interface IPrime;
- }
- };