Calls to Bar2Dcd may be made directly from Visual Basic (version 5 or later), with the Barcode2D structure containing the barcode parameters. A Device Independent Bitmap image is formed on the Windows Clipboard, and may be passed to a Picture/Image using
Image1.Picture=Clipboard.GetData(vbCFDIB)
Int WINAPI Bar2Dcd(LPRECT rc, LPBAR2D bc)
Where
rc is the RECT structure that will contain the image size
bc is the BARCODE2D structure containing the barcode details.
More: