Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: edit control Pin
Stephen Hewitt26-Apr-07 20:59
Stephen Hewitt26-Apr-07 20:59 
QuestionVisiblity of Tree in MFC Pin
T.RATHA KRISHNAN26-Apr-07 20:32
T.RATHA KRISHNAN26-Apr-07 20:32 
QuestionAll MS SDK/DDK Versions? Pin
Syouki_kou26-Apr-07 20:31
Syouki_kou26-Apr-07 20:31 
AnswerRe: All MS SDK/DDK Versions? Pin
Paresh Chitte26-Apr-07 21:41
Paresh Chitte26-Apr-07 21:41 
GeneralRe: All MS SDK/DDK Versions? Pin
Syouki_kou27-Apr-07 15:24
Syouki_kou27-Apr-07 15:24 
QuestionCan I start a timer inside a thread [modified] Pin
BlrBoy26-Apr-07 19:34
BlrBoy26-Apr-07 19:34 
AnswerRe: Can I start a timer inside a thread Pin
Arman S.26-Apr-07 20:01
Arman S.26-Apr-07 20:01 
AnswerRe: Can I start a timer inside a thread Pin
Roger Stoltz26-Apr-07 20:59
Roger Stoltz26-Apr-07 20:59 
The short answer is "yes, you can". Wink | ;)

From Arman's reply I guess you didn't think about a UI-thread and a CWinThread derived object from the start and you don't really need a UI-thread.

I suggest you create an ordinary worker thread, see here[^] how to do it and avoid common pitfalls.
Create a waitable timer with ::CreateWaitableTimer( NULL, FALSE, NULL )[^] inside your worker thread and wait on the timer handle with e.g. ::WaitForMultipleObjects(...).
Start the timer with ::SetWaitableTimer(...)[^] and make it periodic.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown

Questionload html page Pin
vasu_sri26-Apr-07 19:34
vasu_sri26-Apr-07 19:34 
AnswerRe: load html page Pin
Paresh Chitte26-Apr-07 20:01
Paresh Chitte26-Apr-07 20:01 
AnswerRe: load html page Pin
Arman S.26-Apr-07 20:04
Arman S.26-Apr-07 20:04 
AnswerRe: load html page Pin
Hamid_RT26-Apr-07 21:10
Hamid_RT26-Apr-07 21:10 
Question.lib file not created in VS 2005 Pin
Y K Kishore Kumar26-Apr-07 19:12
Y K Kishore Kumar26-Apr-07 19:12 
QuestionRe: .lib file not created in VS 2005 Pin
Hamid_RT26-Apr-07 20:48
Hamid_RT26-Apr-07 20:48 
AnswerRe: .lib file not created in VS 2005 Pin
Y K Kishore Kumar26-Apr-07 20:54
Y K Kishore Kumar26-Apr-07 20:54 
QuestionDisplaying PNG File properly Pin
Vineet Kumar26-Apr-07 19:02
Vineet Kumar26-Apr-07 19:02 
AnswerRe: Displaying PNG File properly Pin
Paresh Chitte26-Apr-07 19:09
Paresh Chitte26-Apr-07 19:09 
GeneralRe: Displaying PNG File properly Pin
Vineet Kumar26-Apr-07 22:47
Vineet Kumar26-Apr-07 22:47 
AnswerRe: Displaying PNG File properly Pin
Hamid_RT26-Apr-07 20:49
Hamid_RT26-Apr-07 20:49 
AnswerRe: Displaying PNG File properly Pin
jk chan26-Apr-07 23:00
jk chan26-Apr-07 23:00 
QuestionWriting ActiveX with visual C++ - need help. Pin
Yanshof26-Apr-07 18:39
Yanshof26-Apr-07 18:39 
AnswerRe: Writing ActiveX with visual C++ - need help. Pin
Arman S.26-Apr-07 19:53
Arman S.26-Apr-07 19:53 
AnswerRe: Writing ActiveX with visual C++ - need help. Pin
Hamid_RT26-Apr-07 21:17
Hamid_RT26-Apr-07 21:17 
QuestionUI-thread with both message pump and an infinite loop Pin
GameProfessor26-Apr-07 18:37
GameProfessor26-Apr-07 18:37 
AnswerRe: UI-thread with both message pump and an infinite loop Pin
Stephen Hewitt26-Apr-07 18:57
Stephen Hewitt26-Apr-07 18:57 

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.