5 - 27
//
// 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 )
{
Summary of Contents for PadCom TT1500
Page 1: ... PadCom Point of Sale Terminal Control Library U s e r s G u i d e ...
Page 88: ...4 2 ...
Page 129: ......
Page 130: ......
Page 131: ......
Page 132: ... PadCom UG Rev A 4619 Jordan Road P O Box 187 Skaneateles Falls New York 13153 0187 ...