Calls to Bar2Dfnt are used to generate font-based barcodes (the characters for which are placed in the szOut string)
Int WINAPI Bar2Dfnt(LPBAR2D bc, LPSTR szOut)
Where bc is a pointer to a BARCODE2D structure that contains the barcode parameters, and szOut is a pointer to a string the will receive the font-based barcode characters that form the symbol when displayed in the appropriate font. The character buffer pointed to by szOut must already exist and be large enough to hold the output string.
Bar2Dfnt supports those barcode types which have a fixed height per character line, ie. Aztec, Datamatrix, PDF417, QR Code and the linear variants of Databar. Calls specifying other barcode types will return error code 11 (code type not supported).
Calls return 0 if successful or an error code if an error occurs.
The parameters carry no information about the barcode font required to produce the correct barcode symbol. For details of the fonts see the Barcode Fonts section below.
More: