Two additional calls are available within the DLL, although they provide very limited functionality. They were designed for specific uses within other dLSoft products and are not recommended for general use.
Int WINAPI BarC2w(int code, LPSTR string, int pa, int wid, int ht, int aspec, int linered)
Int WINAPI BarC2wb(int code, LPSTR string, int len,int pa, int wid, int ht, int aspec, int linered)
Where code is an integer value with the least significant 4 bits representing the barcode type and the upper 4 bits representing the security level, i.e. code = codetype + securitylevel*16
String is the data string or bytes
Len is the length of the string. May be 0 in which case the string is assumed to be NULL terminated.
Wid is the x_unit dimension in 0.01 mm units
Ht is a multiplier which determines the y_unit value from y_unit=ht*x_unit
Aspec is the aspect ratio value times 100
Linered is the line_reduction value as a percentage
Pa is an integer an 8 bit pattern containing orientation and extra flags as follows:
iExtra1: b4=1
iExtra2:
b5=1
Orientation left: b6=1
Orientation right: b7=1
Orientation
invert: b6=1 and b7=1
Calls to these functions result in the barcode image being created as a black on white metafile picture on the Windows clipboard – and so are normally followed by a paste or GetData operation to retrieve the image. The calls may be made from Visual Basic or Visual Basic for Applications, in which case one of the following Basic declarations will be required in the calling program:
Private Declare Function BarC2wb Lib "Dls2d4" (ByVal co As Long, ByVal St$, ByVal ln As Long, ByVal pa As Long, ByVal ht As Long, ByVal wd As Long, ByVal aspec As Long, ByVal lr As Long) As Long
Private Declare Function BarC2wb Lib "Dls2d4" (ByVal co As Long, ByVal St$, ByVal pa As Long, ByVal ht As Long, ByVal wd As Long, ByVal aspec As Long, ByVal lr As Long) As Long
More: