5 - 38
}
}
}
SetTimer(hWnd, MSR_TIMER_ID, 1000, lpfnMyTimerProc);
}
//
// ********************************************************************************
// *
*
// * ResetMSR - initializes the MSR and sets up a timer to pole for MSR data
*
// *
*
// ********************************************************************************
//
int ResetMSR ( HWND hWnd )
{
//
// *******************************************************
// * Step 2: prepare the MSR to read data.
*
// *******************************************************
//
if ( padGetMagTrack ( 0,0,0 ) )
{
//
// 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,
Содержание PadCom TT1500
Страница 1: ... PadCom Point of Sale Terminal Control Library U s e r s G u i d e ...
Страница 88: ...4 2 ...
Страница 129: ......
Страница 130: ......
Страница 131: ......
Страница 132: ... PadCom UG Rev A 4619 Jordan Road P O Box 187 Skaneateles Falls New York 13153 0187 ...