Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionVOID CALLBACK GestionCom1( HWND hwnd, // handle of window for timer messages UINT uMsg, // WM_TIMER message UINT idEvent, // timer identifier DWORD dwTime // current system time ) { // La geestion du com1 }
VOID CALLBACK GestionCom2( HWND hwnd, // handle of window for timer messages UINT uMsg, // WM_TIMER message UINT idEvent, // timer identifier DWORD dwTime // current system time ) { // La geestion du com2 }
// A l'initialisation de l'application SetTimer(handleWindow, ID_TIMER1, 1000, GestionCom1); // 1000ms SetTimer(handleWindow, ID_TIMER2, 10, GestionCom2); // 10ms
// A la fin de l'application KillTimer(handleWindow, ID_TIMER1); KillTimer(handleWindow, ID_TIMER2);