To convert a string of characters into the bars and spaces required for the barcode requires converting the character string into another string – made up of only the 0 - z characters present in the QR font.
The DQRDF.DLL will perform this conversion, and provides three function calls which can either return the required string, copy it to the clipboard, or save it to a named disk file. These functions may be called from Visual Basic (including Visual Basic for Applications in Microsoft Office), Visual C++, Visual Foxpro, Delphi, C++ Builder, and in fact virtually every language that can make DLL calls.
The functions are called with parameters that specify the options available for the barcode:
Code – a pointer to an integer which specifies the code type: 0 for QR Code, or 1 for Micro QR Code.
szIn – is a pointer to a string containing the bytes used as data to create the barcode. While passed as a text string, the string can contain non-text bytes (including ASCII 0) provided that the length parameter (n) is used to specify the length of the data. If n is 0, then the string is assumed to be a null-terminated ASCII string.
n – a pointer to an integer which is either 0 or specified the length of the data in szIn.
mode – a pointer to an integer specifying the mode of the QR Code barcode created. The allowed values are:
0 for Numeric mode
1 for Alphanumeric mode
2 for Byte
mode
3 for Kanji mode.
More: