Hand Held Products PadCom TT1500 User Manual page 115

Point-of-sale terminal control library
Table of Contents

Advertisement

//
// Initialize the contents of the buffers.
//
strcpy ( track1, "NO DATA READ" );
strcpy ( track2, "NO DATA READ" );
strcpy ( track3, "NO DATA READ" );
//
// In Windows it is not good to use "do" or "while" loops.
// Instead we will use a timer to pole the MSR for data
//
lpfnMyTimerProc = (TIMERPROC) MakeProcInstance( (FARPROC) TimerProc,
theInstance );
SetTimer(hWnd, MSR_TIMER_ID, 1000, lpfnMyTimerProc);
return 1;
}
{
MessageBox( hWnd, "ERROR: Unable to initialize Magnetic Stripe Reader!",
appName, MB_OK );
return 0;
}
}
//
// ********************************************************************************
// *
// * ReadMSR - reads the MSR data if any is available
// *
// ********************************************************************************
//
int ReadMSR ( void )
{
*
*
*
5 - 27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents