BarAsk and BarAskEx

 - displays a pop-up dialog requesting barcode information.

int WINAPI BarAsk( LPSTR data, LPINT bEnable)

where bEnable controls whether the dBarcode dialog enables its data control which allows the barcode data to be displayed and modified, and data may be barcode data displayed in the dialog.

If bEnable is non-zero the data contained in the data string is displayed in the dBarcode dialog box, and any changes made to the data in the dialog box are copied to the data string when the OK button is pushed.

 

 

All other properties that may be set in the dialog box are maintained in memory once the OK button is pushed. For BarAskEx these properties are maintained until the calling program closes, while for BarAsk the properties are also stored and become the defaults for future runs of the program.

One of the options in the Barcode options dialog for Code 128 barcodes is the 128 Options button. This displays the Code 128 control codes dialog, allowing the user to define characters that may be used to represent control codes in place of the default characters described in the Barcode Help file.

 

All the writeable properties described for the structure are accessible through the dBarcode dialog.

For Visual Basic the declaration is

Private Declare Function BarAskEx Lib "Dlsbar32" (ByVal x As String, ByRef i As Long) As Long

 

More:

BarCdm and BarCdmx