– generates a barcode image from a data string using the current default barcode properties and saves the image to a named disk file.
int WINAPI BarCds(LPSTR lpszin,LPSTR lpszfname)
where lpszin is a pointer to a character string containing the data to be placed in the barcode, and lpszfname is a pointer to a string containing the fully qualified filename of the file to receive the image. The type of image is determined by the file extension, which may be WMF (Windows metafile), BMP (Bitmap), PCX (Paintbrush), PNG (Portable Network Graphic), or GIF (Gif files). Note that graphic files based on bitmaps should have a target resolution specified by calling SetBitmapScale() before saving the file.
The function returns the number of bytes written to the file, or –1 in the event of an error.
Visual Basic declaration:
Private Declare Function BarCds Lib "Dlsbar32" (ByVal y As String, ByVal x As String) As Long
More: