L_BarCodeGetNextDuplicated

#include "ltbar.h"

L_INT EXT_FUNCTION L_BarCodeGetNextDuplicated(pBarCodeData, nCurIndex)

pBARCODEDATA pBarCodeData;

/* pointer to the BARCODEDATA structures */

L_INT nCurIndex;

/* current barcode index*/

Returns the index of the next barcode in the array that is a duplicate of the barcode at index nCurIndex.

Parameter

Description

pBarCodeData

Pointer to an array of BARCODEDATA structures that contain barcode information for a bitmap. This parameter is the same array returned by L_BarCodeRead.

nCurIndex

Index of the current duplicated barcode. The value returned by L_BarCodeGetNextDuplicated will be greater than this value. This index is zero based.

Returns

>=0

An index of duplicated barcode.

< 0

An error occurred. Refer to Return Codes.

Comments

As an example, a call to L_BarCodeRead reads ten barcodes into a BARCODEDATA array. L_BarCodeIsDuplicated is called for the item at index 3 in the array, and TRUE is returned. Therefore one or more barcodes in the array are duplicates of the specified item.

Calling L_BarCodeGetFirstDuplicated returns the index of the first barcode in the array that is a duplicate of the barcode at index 3 in the array. Suppose this value is 0. The barcode present at index three in the array is the first duplicate of the barcode at index 3.

Calling L_BarCodeGetNextDuplicated with nCurIndex set to 3 will return the index of the next barcode in the array that is a duplicate of the barcodes at index 0 and 3. Suppose this value is 9. Therefore the barcodes at index 0, index 3, and index 9 of the array are all duplicates.

Required DLLs and Libraries

LTBAR

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_BarCodeRead, L_BarCodeWriteExt, L_BarCodeFree, L_BarCodeIsDuplicated, L_BarCodeGetDuplicated, L_BarCodeVersionInfo, L_BarCodeGetFirstDuplicated, L_BarCodeWriteExt2

Topics:

Programming with LEADTOOLS Barcode

BarCode API Function Groups

Example

For complete sample code refer to MFCBar32 demo.

For an example, refer to L_BarCodeGetDuplicated.