BarCodep

Int WINAPI BarCodep(LPSTR lpsz, LPBAT bc)

Where lpsz is a pointer to a string to receive the pattern string

And bc is a barcode structure.

Returns the length of the pattern string, so that VB programmers can extract a valid pattern string from a predefined Visual Basic string, e.g.

Pat$=String(4096,vbNullChar)
N=BarCodep(Pat$,bc)
Pattern$=Left$(Pat$,N)

This function is also useful to obtain the human readable text including any checkdigit(s). If the bc.spare item is set to –1 (minus 1)then the pattern string is NOT created, but the bc.string2 string is completed with the human readable text.

More:

BarCodeb