// BarCode.idl : type library source for ActiveX Control project. // This file will be processed by the MIDL compiler tool to // produce the type library (BarCode.tlb) that will become a resource in // BarCode.ocx. #include #include [ uuid(4475DDA7-AF22-4CD3-9E43-ACA4FCD4F4CC), version(1.0), helpfile("BarCode.hlp"), helpstring("BarCode ActiveX Control module"), control ] library BarCodeLib { importlib(STDOLE_TLB); // Primary dispatch interface for CBarCodeCtrl [ uuid(599D97AD-B74B-4AF4-B049-3A692F7866B1), helpstring("Dispatch interface for BarCode Control")] dispinterface _DBarCode { properties: methods: [id(1), propget, helpstring("property Code")] BSTR Code(BSTR* code); [id(1), propput, helpstring("property Code")] void Code(BSTR* code, BSTR newVal); }; // Event dispatch interface for CBarCodeCtrl [ uuid(AFA647B6-711B-4959-AE40-50B80287417E), helpstring("Event interface for BarCode Control") ] dispinterface _DBarCodeEvents { properties: // Event interface has no properties methods: }; // Class information for CBarCodeCtrl [ uuid(88EA1F15-EBF6-4FC1-8BB3-B23389171973), helpstring("BarCode Control"), control ] coclass BarCode { [default] dispinterface _DBarCode; [default, source] dispinterface _DBarCodeEvents; }; };