Intermec 700 Series User Manual page 253

Color mobile computer
Hide thumbs Also See for 700 Series:
Table of Contents

Advertisement

Chapter
6
Scanner Support
#include "IADC.h"
#include "ITCAdcMgmt.h"
IADC* pIADC;
HRESULT hrStatus = S_OK;
// Create a ADC COM interface to collect bar code data from the 1551E/1553
// when the 1551/1553 menu option is enabled.
hrStatus =
ITCDeviceOpen(TEXT("ExtScanner"),
IID_IADC,
ITC_DHDEVFLAG_READAHEAD,
(LPVOID *) &pIADC);
if( SUCCEEDED(hrStatus) )
{
BYTE byteBuffer[MAX_LABEL_SIZE];
DWORD dwLength = 0;
HRESULT hr = pIDC->Read(
byteBuffer,
MAX_LABEL_SIZE,
&dwLength,
NULL,
INFINITE
);
}
when done using this COM interface, delete it:
ITCDeviceClose( (IUnknown **) pIADC);
234
S The bar code APIs, defined in the IADC interface, are available to get
bar code data from the bar code scanner. The following example shows
how to programmatically collects bar code data:
// Linked with ITCUUID.LIB
// Linked with ITCAdcDevMgmt.lib
// Name of the ADC device.
// COM interface to return
// Device's Flags
// the returned interface
// Buffer to put the ADC data.
// Size of pDataBuffer in bytes.
// Number bytes returned.
// Time stamp of the received data. NULL.
// Number of milliseconds to wait.
700 Series Color Mobile Computer User's Manual

Advertisement

Table of Contents
loading

Table of Contents