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) ;



