Argox PT-10 Bedienungsanleitung Seite 37

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 79
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 36
API_GetBarData
Get Barcode into the buffer. When you get the message SM_DATA_READY, call this function to get the barcode data.
UINT API_GetBarData
{
LPBYTE buffer,
UINT * uiLength,
UINT * uiBarType
}
Parameters
buffer
[out] buffer for string scanned data.
uiLength
[in/out] buffer size
uiBarType
[out] barcode type
Return Values
Return 1 if the operation is successful, otherwise return 0.
Remarks
If the buffer size is less than scan data, function return 0 and the parameter uiLength return the size of the buffer to
get barcode data.
Example
if(message == SM_DATA_READY){
CString strBarData,strBarType;
UINT uiSize, uiType, i;
char *pBuf;
uiSize = uiType = 0;
API_GetBarData(NULL, &uiSize, &uiType);
if(uiSize == 0)
strBarData = _T("No Data");
else{
pBuf = (char *)new char[uiSize+1];
Programming Manual 34
Seitenansicht 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 78 79

Kommentare zu diesen Handbüchern

Keine Kommentare