Denso BHT-700-CE Reference Manual page 94

Barcode handy terminal
Table of Contents

Advertisement

BHT_GetBarChkDgt
Description
Calculate a check digit (CD) of
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
EAN(JAN), UPC
ITF
STF (only for BHT-700B)
CODABAR (NW-7)
CODE-39
MSI (only for BHT-700B)
pdwChkdgt
(out) Address for storing the check digit calculated
Return value
Error code
ERROR_SUCCESS
ERROR_INVALID_PARAMETER
the barcode data
,
,
)
dwCDType Calculation Method
'A'
MOD10 (Modulo arithmetic-10)
'I'
MOD10 (Modulo arithmetic-10)
'H'
MOD10 (Modulo arithmetic-10)
'N'
MOD16 (Modulo arithmetic-16)
'M'
MOD43 (Modulo arithmetic-43)
'P'
MOD10 (Modulo arithmetic-10)
Successful completion
Invalid check digit type.
Invalid barcode data.
Storage address not specified.
according to the calculation method specified by
Meaning
89

Advertisement

Table of Contents
loading

Table of Contents