The getErrorMess() function may be used to obtain a text version of the error message corresponding to an errorcode value.
Declaration
int getErrorMess(int errorcode, char * mess)
errorcode – is an integer errorcode (returned by the barcode() function)
mess if a pointer to s string buffer that will receive the corresponding error message. The buffer must exist and be at least 36 bytes long.
The error message generated by the libraries are shown in the table below.
0 OK (no error)
1
Invalid data length
2
Invalid code type
3
Invalid parameters
4
Illegal character in
data
5 Invalid
embedded code
>5 Error creating
barcode