Int WINAPI BarCodew(LPSTR szin, LPINT ni)
- generates a barcode metafile image on the clipboard using the current default settings and with the data (string) taken from szin. Any trailing characters in szin which have ASCII values of less than 33 are removed before the barcode is created. This avoids the data having a trailing carriage return, linefeed or space, which typically occurs when characters are selected by double-clicking on words in Microsoft Office applications.
(The ni parameter is not used in this version and should be 0.)
The return value is 0 if the barcode is created or an errorcode number in the event of an error.
Visual Basic declaration:
Private Declare Function BarCodew Lib "Dlsbar34" (ByVal sin$, ByRef pa As Long) As Long
More: