L_LTBAR_API L_INT L_BarCodeInit(nMajorType)
Initializes the barcode engine and pre-loads the required DLL's for Barcode operations into memory.
Barcode major type. Values can be combined, when appropriate, by using a bitwise OR (|). Possible values are:
|BARCODES_1D||[0x001] Initialize the linear barcode operations.|
|BARCODES_PDF_READ||[0x008] Initialize the PDF barcode read operations.|
|BARCODES_PDF_WRITE||[0x010] Initialize the PDF barcode write operations.|
|BARCODES_DATAMATRIX_READ||[0x020] Initialize the Data Matrix barcode read operations.|
|BARCODES_DATAMATRIX_WRITE||[0x040] Initialize the Data Matrix barcode write operations.|
|BARCODES_QR_READ||[0x080] Initialize the QR barcode read operations.|
|BARCODES_QR_WRITE||[0x100] Initialize the QR barcode write operations.|
|BARCODES_MICRO_PDF_READ||[0x1000] Initialize the MicroPDF barcode read operations.|
|BARCODES_MICRO_PDF_WRITE||[0x2000] Initialize the MicroPDF barcode write operations.|
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
This function pre-loads the DLLs necessary for the specified barcode operations which can improve performance if you know what barcode types you plan on using. If a barcode major type is not initialized with this function you may still use it and the necessary DLLs will be loaded when L_BarCodeRead, L_BarCodeReadExt or L_BarCodeWrite is executed. This function must be called before calling any other Barcode functions. If L_BarCodeInit is called in an application, L_BarCodeExit must be called before terminating the application.
Required DLLs and Libraries
Win32, x64, Linux.
For an example, refer to L_BarCodeRead.