bardecode.com

  • Increase font size
  • Default font size
  • Decrease font size
Home FAQ How can I use the software in conjunction with LeadTools?

How can I use the software in conjunction with LeadTools?

The following code example shows how an image loaded with the LeadTools Main OCX can be scanned for barcodes with the Softek Barcode OCX. This code can be easily adapted for use with DLL functions:

m_LeadToolsMain.Load("s:\\tmp\\file.tif", 0, 0, -1) ;
long hdib = m_lead.GetDIB(0) ;
int n = m_SoftekBarcodeReader.ScanBarCodeFromDIB(hdib) ;