TBarCode Library 11  TBarCode Library 11
ERRCODE _stdcall BCSetTextEBCDIC ( INT  nCodepage,
t_BarCode pBarCode,
LPCSTR  szText,
LONG  nLen 
)

Sets barcode text (EBCDIC version).

This function works the same like BCSetTextA() except that the text is specified in EBCDIC encoding and internally converted to ASCII.

Note:
Please make sure to set up all barcode parameters (like barcode type, translation of escape sequences, etc.) before assigning the barcode data. Otherwise the input data will not be converted to the target character set correctly.
Parameters:
[in]nCodepageThe code page number.
[in]pBarCodePointer to barcode structure.
[in]szTextBar-code text (EBCDIC encoded).
[in]nLenLength of input string.
  • >0: Length of string is specified in nLen
  • 0: TBarCode expects a \0-terminated string
Return values:
ERRCODEErrOk (0) in case of success. Non-zero if error occurred.