Api_getbardatalength – Argox PT-9130 User Manual
Page 191

PT-90 Mobile Computer SDK Programming Manual 184
API_GetBarDataLength
To Get Length of the scanned data
UINT API_GetBarDataLength
{
}
Parameters
None
Returned Values
Length of the scanned data
Example
if(message == SM_DATA_READY){
CString strData;
UINT uiSize, uiType, i,uiLength;
char *pBuf;
uiLength = API_GetBarDataLength();
if(uiLength == 0)
strData = _T("No Data");
else{
uiSize = uiLength+1;
pBuf = (char *)new char[uiSize];
memset(pBuf, 0, uiSize);
API_GetBarData((LPBYTE)pBuf, &uiSize, &uiType);
for(i = 0 ; i < strlen(pBuf); i++)
strData += *(pBuf+i);
}
AfxMessageBox(strData);
return 0;
}
Requirements
OS Versions: Windows CE 6.0 or beyond.
Header: scanapiax.h
Link Library: scanapiax.lib
Link DLL: scanapiax.dll
Device: PT90