Argox PT-10 Manuel d'utilisateur Page 59

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 79
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 58
PT_GetBarcodeData
Get Barcode data and type from system buffer.
BOOL PT_GetBarcodeData
{
UINT * uiBarType,
Char * pBuffer,
UINT * uiMaxBufferLen
}
Parameters
uiBarType
[out] barcode type.
pBuffer
[out] buffer for storing scanned data..
uiMaxBufferLen
[in/out] The max buffer size
Return Values
Return TRUE if the operation is successful, otherwise return FALSE.
Remarks
If the buffer size is less than scan data, function return 0 and the parameter uiMaxBufferLen return the size of
barcode data.
Example
if(PT_CheckBarcodeData()){
if(PT_GetBarcodeData(&uiBarType, pBarData, &uiMaxLen)){
for(i = 0 ; i < strlen(pBarData) ; i++)
m_strScanData += *(pBarData + i);
}
else
m_strScanData = _T("Can't get scan data");
}
else
m_strScanData = _T("No Scan Data");
Programming Manual 56
Vue de la page 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 78 79

Commentaires sur ces manuels

Pas de commentaire