TBarCode Library 11  TBarCode Library 11
LONG _stdcall BCGetCheckDigitsA ( t_BarCode pBarCode,
LPSTR  lpszCDText,
LONG  nSize 
)

Returns all computed check-digits for the current barcode.

Returns a string that contains all computed check-digits - in most cases 1 or 2 character(s). The string may contain unprintable characters (e.g. ASCII 0). Please note that symbology internal check sums (e.g. Mod-103 with Code-128) are not returned here. Call this function after BCCalcCD() or after BCCreate()

See also:
BCCalcCD(), BCCreate()
Parameters:
[in]pBarCodePointer to barcode structure.
[in,out]lpszCDTextCheck-digit text buffer. If NULL this function returns only the number of check-digits.
[in]nSizeBuffer size of lpszCDText.
Return values:
LONGNumber of check-digits
-1In case of error (buffer size to small)