L_BarCodeInit

Summary

Initializes the barcode engine and pre-loads the required DLL's for Barcode operations into memory.

Syntax

#include "ltbar.h"

L_LTBAR_API L_INT L_BarCodeInit(nMajorType)

Parameters

L_INT nMajorType

Barcode major type. Values can be combined, when appropriate, by using a bitwise OR ( | ). Possible values are:

Value Meaning
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.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

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

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

For an example, refer to L_BarCodeRead.

Help Version 22.0.2022.12.13
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Barcode C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.