Bar code functions

Low-level functions

Function CIA_CALC is all you need to calculate any bar code. If you only want to calculate one type of bar code use one of the simpler high-level functions.

Function prototype
int CIA_CALC ( LPSTR in, LPSTR out, LPSTR truetype, LPSTR symbology, LPINT outLen, LPINT truetypeLen )
int CIA_ERR ( int errorCode, LPSTR symbology, LPSTR error, int errorLen )

High-level functions

Many of our products include these high-level functions. These functions only require a string in containing the data for the bar code, and string out which will contain the result. These functions use default parameters.

Function prototype Returns bar code (or human readable text)
CIA_BOOKLAND (LPSTR in, LPSTR out) Bookland
CIA_CODABAR (LPSTR in, LPSTR out) Codabar
CIA_CODE128 (LPSTR in, LPSTR out) Code 128
CIA_CODE39 (LPSTR in, LPSTR out) Code 39
CIA_CODE39_A (LPSTR in, LPSTR out) Code 39. Added check character.
CIA_CODE39_A_H (LPSTR in, LPSTR out) As above. Human-readable text.
CIA_CODE39_NOEXT (LPSTR in, LPSTR out) Code 39. No extended characters.
CIA_CODE39_NOEXT_A (LPSTR in, LPSTR out) Code 39. No extended characters. Added check character.
CIA_CODE39_NOEXT_A_H (LPSTR in, LPSTR out) As above. Human-readable text.
CIA_CODE93 (LPSTR in, LPSTR out) Code 93
CIA_EAN128 (LPSTR in, LPSTR out) EAN-128
CIA_SCC14 (LPSTR in, LPSTR out) SCC-14
CIA_SCC14_H (LPSTR in, LPSTR out) As above. Human-readable text.
CIA_SSCC18 (LPSTR in, LPSTR out) SSCC-18
CIA_SSCC18_H (LPSTR in, LPSTR out) As above. Human-readable text.
CIA_EAN13 (LPSTR in, LPSTR out) EAN-13
CIA_EAN13_H (LPSTR in, LPSTR out) As above. Human-readable text.
CIA_EAN13_2 (LPSTR in, LPSTR out) EAN-13 + 2 digits
CIA_EAN13_5 (LPSTR in, LPSTR out) EAN-13 + 5 digits
CIA_EAN8 (LPSTR in, LPSTR out) EAN-8
CIA_EAN8_H (LPSTR in, LPSTR out) As above. Human-readable text.
CIA_EAN8_2 (LPSTR in, LPSTR out) EAN-8 + 2 digits
CIA_EAN8_5 (LPSTR in, LPSTR out) EAN-8 + 5 digits
CIA_ISBN (LPSTR in, LPSTR out) ISBN
CIA_ISSN (LPSTR in, LPSTR out) ISSN
CIA_ITF (LPSTR in, LPSTR out) Interleaved 2 of 5
CIA_ITF_A (LPSTR in, LPSTR out) Interleaved 2 of 5. Added check character
CIA_ITF_A_H (LPSTR in, LPSTR out) As above. Human-readable text.
CIA_ITF14_H (LPSTR in, LPSTR out) Human-readable text.
CIA_POSTNET (LPSTR in, LPSTR out) POSTNET
CIA_UCC128 (LPSTR in, LPSTR out) UCC-128
CIA_UPCA (LPSTR in, LPSTR out) UPC-A
CIA_UPCA_H (LPSTR in, LPSTR out) As above. Human-readable text.
CIA_UPCA_2 (LPSTR in, LPSTR out) UPC-A + 2 digits
CIA_UPCA_5 (LPSTR in, LPSTR out) UPC-A + 5 digits
CIA_UPCE (LPSTR in, LPSTR out) UPC-E
CIA_UPCE_H (LPSTR in, LPSTR out) As above. Human-readable text.
CIA_UPCE_2 (LPSTR in, LPSTR out) UPC-E + 2 digits
CIA_UPCE_5 (LPSTR in, LPSTR out) UPC-E + 5 digits


Copyright 2000 CIA (BAR CODES) UK. All rights reserved. Reproduction prohibited.