BarCode.DLL Compatibility With SAPlpd
To assure compatibility with the R/3 SAPlpd program, the barcode.DLL vendor must verify that the following are true:
Any barcode.DLL that offers the following two functions should be compatible with SAPlpd (also see SAP Note 25344 for descriptions of the parameters in the function calls):
bool BarcodeInit(far char * buff, int bufflen)
/* SAPlpd calls this function when SAPlpd starts. The
parameter buff points to a buffer in SAPlpd of length
bufflen. The barcode.DLL puts a string in this buffer which
is output by SAPlpd in its log window.
The string identifies
the bar code.DLL: name, manufacturer, version.
Return TRUE if OK. */
int Bar codePrint( HDC * hPr, bar code * bc_ptr)
/* This function is called by SAPlpd to print a bar code. The
hPr parameter contains the GDI device context for the output
device. The parameter bc_ptr points to a control block which
contains the information about the bar code.
Return code 0: execution successful
Return code <> 0: An error occurred. In this case, the
pointer errmsg in the control block must be set accordingly.
The control block must contain the following fields: */
short protovers /* Log version used. Set to 3 by
SAPlpd. */
int xpos; /* Start position. Set to the current
int ypos; cursor of SAPlpd.
Output of the
bar code begins here.*/
int hsize; /* Required size of bar code. -1 sets
int vsize; to standard size. */
char far * str; /* Data */
int strlength;
int check; /* Compute checksum:
0: no checksum
1: with checksum
-1: