BarCode.idl 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // BarCode.idl : type library source for ActiveX Control project.
  2. // This file will be processed by the MIDL compiler tool to
  3. // produce the type library (BarCode.tlb) that will become a resource in
  4. // BarCode.ocx.
  5. #include <olectl.h>
  6. #include <idispids.h>
  7. [ uuid(4475DDA7-AF22-4CD3-9E43-ACA4FCD4F4CC), version(1.0),
  8. helpfile("BarCode.hlp"),
  9. helpstring("BarCode ActiveX Control module"),
  10. control ]
  11. library BarCodeLib
  12. {
  13. importlib(STDOLE_TLB);
  14. // Primary dispatch interface for CBarCodeCtrl
  15. [ uuid(599D97AD-B74B-4AF4-B049-3A692F7866B1),
  16. helpstring("Dispatch interface for BarCode Control")]
  17. dispinterface _DBarCode
  18. {
  19. properties:
  20. methods:
  21. [id(1), propget, helpstring("property Code")] BSTR Code(BSTR* code);
  22. [id(1), propput, helpstring("property Code")] void Code(BSTR* code, BSTR newVal);
  23. };
  24. // Event dispatch interface for CBarCodeCtrl
  25. [ uuid(AFA647B6-711B-4959-AE40-50B80287417E),
  26. helpstring("Event interface for BarCode Control") ]
  27. dispinterface _DBarCodeEvents
  28. {
  29. properties:
  30. // Event interface has no properties
  31. methods:
  32. };
  33. // Class information for CBarCodeCtrl
  34. [ uuid(88EA1F15-EBF6-4FC1-8BB3-B23389171973),
  35. helpstring("BarCode Control"), control ]
  36. coclass BarCode
  37. {
  38. [default] dispinterface _DBarCode;
  39. [default, source] dispinterface _DBarCodeEvents;
  40. };
  41. };