component.idl
上传用户:bjlvip
上传日期:2010-02-08
资源大小:744k
文件大小:1k
源码类别:

Windows编程

开发平台:

Visual C++

  1. // component.idl
  2. import "unknwn.idl";
  3. [ object, uuid(10000001-0000-0000-0000-000000000001), oleautomation ]
  4. interface ISum : IUnknown
  5. {
  6. typedef [v1_enum] enum DaysOfTheWeek
  7. {
  8.      Monday,
  9.  Tuesday,
  10.  Wednesday,
  11.  Thursday,
  12.  Friday,
  13.  Saturday,
  14.  Sunday
  15. } DaysOfTheWeek;
  16. HRESULT Test(DaysOfTheWeek day);
  17. }
  18. [ uuid(10000003-0000-0000-0000-000000000001),
  19.   helpstring("Inside COM+ Component"),
  20.   version(1.0) ]
  21. library Component
  22. {
  23. importlib("stdole32.tlb");
  24. interface ISum;
  25. [ uuid(10000002-0000-0000-0000-000000000001) ]
  26. coclass InsideCOM
  27. {
  28. interface ISum;
  29. }
  30. };