Programming Manual
85
API_GetBarDataLength
Get the scan data length.
UINT
API_GetBarDataLength
{
}
Parameters
None
Return Values
Scan data length
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 = u1;
pBuf = (char *)new char[uiSize];
memset(pBuf, 0, uiSize);
API_GetBarData((LPBYTE)pBuf, &uiSize, &uiType);
for(i = 0 ; i < strlen(pBuf); i++)
s= *(pBuf+i);
}
AfxMessageBox(strData);
return 0;
}
Requirements
OS Versions:
Windows CE 5.0 and later.
Header:
scanapiax.h
Link Library:
scanapiax.lib
Link DLL:
scanapiax.dll
Device:
PA60
Summary of Contents for PA-60
Page 1: ...PA 60 Mobile Computer Programming Manual DOC NO UM PA605 02 June 2012 Version 1 0 ...
Page 57: ...Programming Manual 53 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Page 72: ...Programming Manual 68 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Page 91: ...Programming Manual 87 Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...