Calls to Barocdeudf() generate the characters for a font-based barcode from parameters providing the data, barcode type and a flags parameter.
Int WINAPI Barcodeudf(LPSTR szIn, LPINT ptrCode, LPINT ptrFlags, LPSTR szOut, LPSTR szHuman)
szIn is a pointer to a string holding the barcode data
ptrCode is a pointer to an integer holding the barcode type value (as defined in the Barcode Type Table)
ptrFlags is a pointer to an integer holding a bitwise collection of flag values. The flag values for this function are:
1 automatically calculate check digit (default 0 = non
automatic calculation)
2 use 3:1 bar width ratio for variable ratio barcode
types (default 0 = 2:1 ratio used)
16 the Extra1 flag (see Barcode
help)
32 the Extra2 flag.
sszOut is a pointer to a string that receives the font version of the barcode. This string needs to be displayed/printed in one of the UN** fonts included with the kit. We recommend that szOut is char[120]. If szOut is NULL then no string is produced.
szHuman is a pointer to a string that receives the human-readable version of the barcode data, including any automatically generated check digit. We recommend that szHuman is char[96]. If szHuman is NULL then no string is produced.
This function is provided primarily to allow the easy use of in-cell formulae within Microsoft Excel. See “In-cell Barcode function for Excel”.
More: