CipherLab 9400 Series User Manual page 40

Hide thumbs Also See for 9400 Series:
Table of Contents

Advertisement

9400 .NET Programming
ReadBarcodeData
Purpose
To read data from the barcode without intercepting WM_DECODEDATA.
Syntax
int ReadBarcodeData (ref int codeType,
Parameters
codeType
[in][out] Pointer to a variable that stores the barcode type.
outBuf
[in][out] Pointer to a buffer where the data is stored.
timeout
[in] The elapsing time before the read operation is stopped, in the range of
1~60 in units of second.
Example for C#
int codeType = 0;
string outBuf = string.Empty;
b1 = Reader.ReaderEngineAPI.ReadBarcodeData(ref codeType, ref outBuf,
3);
Example for VB
Dim codeType As Integer
Dim outBuf As String = ""
Reader.ReaderEngineAPI.ReadBarcodeData(codeType, outBuf, 3)
Return Value
If successful, it returns the number of bytes obtained (not including the
terminating null character).
Otherwise, it returns 0.
Remarks
This function is provided for users who want to scan and retrieve data without
intercepting WM_DECODEDATA. For example, if users want to scan data by
clicking a GUI button, all they need to do is to invoke this function in the
clicking event handler function.
See Also
DataOutputSettings
32
Guide
Call GetErrorCode() to find the error condition encountered:
0
E_READER_UNKNOWN_ERROR
-101
E_READER_NOT_INIT
ref string outBuf,
int timeout);

Advertisement

Table of Contents
loading

Table of Contents