Specifications

BHT_GetBarChkDgt
Description
Calculate a check digit (CD) of
the barcode data according to the calculation method specified by
dwCDType.
Syntax
DWORD BHT_GetBarChkDgt (
TCHAR* pwchBarbuf ,
DWORD dwCDType ,
DWORD* pdwChkdgt )
Parameters
pwchBarbuf
[in] Heading address of barcode data storage buffer
dwCDType
[in] Check digit type
Barcode type and the corresponding calculation method
Barcode Type dwCDType Calculation Method
EAN(JAN), UPC 'A' MOD10 (Modulo arithmetic-10)
ITF 'I' MOD10 (Modulo arithmetic-10)
STF (only for BHT-700B) 'H' MOD10 (Modulo arithmetic-10)
CODABAR (NW-7) 'N' MOD16 (Modulo arithmetic-16)
CODE-39 'M' MOD43 (Modulo arithmetic-43)
MSI (only for BHT-700B) 'P' MOD10 (Modulo arithmetic-10)
pdwChkdgt
(out) Address for storing the check digit calculated
Return value
Error code Meaning
ERROR_SUCCESS Successful completion
ERROR_INVALID_PARAMETER
Invalid check digit type.
Invalid barcode data.
Storage address not specified.
89