This article shows 2 simple visual c++ code snippets that use either the standard windows dll or the com object for the toolkit. Standard Windows DLL hBarcode = mtCreateBarcodeInstance() ; //Set properties mtSetReadCode128 (hBarcode, 1) ; //Read barcodes int nBarCodes = mtScanBarCode(hBarcode, m_ImageFile) ; //Get results for (int i = 1; i <= nBarCodes;
This arcticle shows some simple VB.net code snippets that reference the .net component or com object for the SDK in Visual Studio. .NET Managed Class Library with Visual Studio 2003 ‘Add a reference to SoftekBarcodeLib.dll Dim barcode As SoftekBarcodeLib.BarcodeReader barcode = New SoftekBarcodeLib.BarcodeReader ‘Set properties barcode.ReadCode128 = True ‘Read barcodes nBarCodes = barcode.ScanBarCode(Path) ‘Get results
The TifSplit feature of the toolkit allows you to use barcodes as document separators. The input file is scanned for barcodes and then split into a number of smaller documents. There are 2 properties that control how the input file is split: Setting TifSplitPath turns the feature on and controls where the new documents will be created. e.g c:\tmp\Output%d.tif will
Use the following links to view code snippets for the 3 different interfaces commonly used from Visual Basic 6… ActiveX/OCX Interface ‘Add SoftekBarcode ActiveX Control module by selecting Components from the Projects ‘menu ‘Set properties SoftekBarcode1.ReadCode128 = True ‘Read barcodes nBarCodes = SoftekBarcode1.ScanBarCode(Path) ‘Get results For i = 1 To nBarCodes strBarcode = SoftekBarcode1.GetBarString(i) COM Object
The following code shows how the Softek barcode Reader Toolkit can be used from Borland Delphi to extract barcode information from images and memory bitmaps. Click here for some tips on using the toolkit with Delphi 2009. Click here to download a Borland Delphi example in a zip file. The following code was kindly provided by Marian Aldenh?vel of
When distributing the SoftekBarcodeLib2.dll component you may find that you get an error message similar to the following: System.IO.FileLoadException: Could not load file or assembly ‘SoftekBarcodeLib2, Version=X.X.X.X Culture=neutral, PublicKeyToken=3c09a6b205d2b618’ or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from