Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WM_TIMER? - (semi real time) - (I'M VERY NOVICE) - (4 short questions) Pin
Tomasz Sowinski18-Mar-02 4:36
Tomasz Sowinski18-Mar-02 4:36 
GeneralRe: WM_TIMER? - (semi real time) - (I'M VERY NOVICE) - (4 short questions) Pin
C-J Berg18-Mar-02 1:58
C-J Berg18-Mar-02 1:58 
GeneralRe: WM_TIMER? - (semi real time) - (I'M VERY NOVICE) - (4 short questions) Pin
Joan M18-Mar-02 5:36
professionalJoan M18-Mar-02 5:36 
GeneralRe: WM_TIMER? - (semi real time) - (I'M VERY NOVICE) - (4 short questions) Pin
C-J Berg18-Mar-02 6:38
C-J Berg18-Mar-02 6:38 
GeneralRe: WM_TIMER? - (semi real time) - (I'M VERY NOVICE) - (4 short questions) Pin
Tomasz Sowinski18-Mar-02 7:17
Tomasz Sowinski18-Mar-02 7:17 
GeneralRe: WM_TIMER? - (semi real time) - (I'M VERY NOVICE) - (4 short questions) Pin
C-J Berg19-Mar-02 1:56
C-J Berg19-Mar-02 1:56 
GeneralRe: WM_TIMER? - (semi real time) - (I'M VERY NOVICE) - (4 short questions) Pin
Tomasz Sowinski19-Mar-02 2:08
Tomasz Sowinski19-Mar-02 2:08 
GeneralRe: WM_TIMER? - (semi real time) - (I'M VERY NOVICE) - (4 short questions) Pin
C-J Berg19-Mar-02 2:37
C-J Berg19-Mar-02 2:37 
Yes, exactly, one will have to use WaitForMultipleObjects in order to be able to wait on both the timer and a quit/exitthread event (and possibly other objects as well, depending on design).

If the update processing is a lengthy operation, it might be a good thing to check if the quit event has been set at a few checkpoints. This can be done using WaitForSingleObject with a zero timeout value: WaitForSingleObject(hQuitEvent, 0). If the event is set, the return value will be WAIT_OBJECT_0 (cancel update and exit thread), else it will be WAIT_TIMEOUT (continue the update process).
GeneralRe: WM_TIMER? - (semi real time) - (I'M VERY NOVICE) - (4 short questions) Pin
Joan M19-Mar-02 23:20
professionalJoan M19-Mar-02 23:20 
GeneralRe: WM_TIMER? - (semi real time) - (I'M VERY NOVICE) - (4 short questions) Pin
JT Anderson18-Mar-02 8:14
JT Anderson18-Mar-02 8:14 
GeneralRegistry Operations Pin
udayakumar18-Mar-02 0:38
udayakumar18-Mar-02 0:38 
GeneralRe: Registry Operations Pin
Tomasz Sowinski18-Mar-02 0:43
Tomasz Sowinski18-Mar-02 0:43 
GeneralRe: Registry Operations Pin
Abhishek Narula18-Mar-02 0:52
Abhishek Narula18-Mar-02 0:52 
GeneralRe: Registry Operations Pin
Abhishek Narula18-Mar-02 1:05
Abhishek Narula18-Mar-02 1:05 
GeneralRe: Registry Operations Pin
udayakumar18-Mar-02 1:38
udayakumar18-Mar-02 1:38 
GeneralDisable audio port Pin
Halid Niyaz18-Mar-02 0:04
Halid Niyaz18-Mar-02 0:04 
GeneralMultiple View Application Pin
Abhishek Narula17-Mar-02 23:40
Abhishek Narula17-Mar-02 23:40 
GeneralRe: Multiple View Application Pin
Tomasz Sowinski18-Mar-02 0:24
Tomasz Sowinski18-Mar-02 0:24 
GeneralRe: Multiple View Application Pin
Abhishek Narula18-Mar-02 0:32
Abhishek Narula18-Mar-02 0:32 
GeneralRe: Multiple View Application Pin
Tomasz Sowinski18-Mar-02 0:40
Tomasz Sowinski18-Mar-02 0:40 
GeneralActive document container & menu icons Pin
C-J Berg17-Mar-02 23:37
C-J Berg17-Mar-02 23:37 
GeneralWriting Text on Window using TextOut Pin
vkumara17-Mar-02 23:08
vkumara17-Mar-02 23:08 
GeneralRe: Writing Text on Window using TextOut Pin
Tomasz Sowinski17-Mar-02 23:23
Tomasz Sowinski17-Mar-02 23:23 
GeneralRe: Writing Text on Window using TextOut Pin
Stan Shannon17-Mar-02 23:33
Stan Shannon17-Mar-02 23:33 
GeneralRe: Writing Text on Window using TextOut Pin
18-Mar-02 0:29
suss18-Mar-02 0:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.