Bar2Ddmf ()

 - creates text for Datamatrix font and returns the text in szOut

Declared for C as

int WINAPI Bar2Ddmf(LPSTR szIn,LPINT n, LPINT mode, LPINT sec, LPSTR szOut);

where szIn is a pointer to a string containing the text which is to be converted into the barcode;
n is the number of characters in the string (or 0 – in which case the string may not contain NULL characters),
mode specifies the shape of the barcode (0=square, 1= rectangular) or whether the symbol is encoded using GS1 Datamatrix encoding rule (2=square GS1, 3=rectangular GS1),
sec is the security level
and szOut is a pointer to a string which will receive the characters to be rendered in the DataMatrix (AZT) font.

The security level has allowed values of 0 – 24 for square symbols, or 0 – 6 for rectangular symbols. A negative security level may be used to specify the number of columns in the symbol.

Basic declaration

Private Declare Function Bar2Ddmf Lib "dmatdf" (ByVal szIn As String, ByRef n As Long, ByRef mo As Long, ByRef sec As Long, ByRef szOut As String) As Long

 

More:

Bar2Ddmc ()