Click here to Skip to main content
16,007,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem in getting WM_KILLFOCUS Pin
ashtwin20-May-08 2:25
ashtwin20-May-08 2:25 
AnswerRe: Problem in getting WM_KILLFOCUS Pin
Rajkumar R20-May-08 2:39
Rajkumar R20-May-08 2:39 
GeneralRe: Problem in getting WM_KILLFOCUS Pin
ashtwin20-May-08 16:16
ashtwin20-May-08 16:16 
AnswerRe: Problem in getting WM_KILLFOCUS Pin
Rajkumar R20-May-08 21:41
Rajkumar R20-May-08 21:41 
GeneralRe: Problem in getting WM_KILLFOCUS Pin
ashtwin21-May-08 19:00
ashtwin21-May-08 19:00 
QuestionGetting rid of this error... Pin
pl_kode20-May-08 2:14
pl_kode20-May-08 2:14 
AnswerRe: Getting rid of this error... Pin
Cedric Moonen20-May-08 2:22
Cedric Moonen20-May-08 2:22 
AnswerRe: Getting rid of this error... Pin
Cedric Moonen20-May-08 2:28
Cedric Moonen20-May-08 2:28 
By the way, instead of using sleep, you could be much more efficient when you want to stop the thread if you use events (using CreateEvent function). When you want to stop your thread, you can signal the event. In your thread function, you can wait on the event instead of sleeping (and provide a timeout of 1000 msec) and check the return of the WaitForSingleObject to see if it is a timeout (in which case you continue your loop) or if the event has been signaled (in which case you exit your loop). This way, your thread will exit immediately and not wait until your Sleep finished.

Cédric Moonen
Software developer

Charting control [v1.4]

QuestionConnect database when start with window Pin
capint20-May-08 1:52
capint20-May-08 1:52 
AnswerRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 1:56
professionalRajesh R Subramanian20-May-08 1:56 
GeneralRe: Connect database when start with window Pin
capint20-May-08 2:02
capint20-May-08 2:02 
QuestionRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:08
professionalRajesh R Subramanian20-May-08 2:08 
AnswerRe: Connect database when start with window Pin
capint20-May-08 2:13
capint20-May-08 2:13 
AnswerRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:18
professionalRajesh R Subramanian20-May-08 2:18 
GeneralRe: Connect database when start with window Pin
capint20-May-08 2:21
capint20-May-08 2:21 
GeneralRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:38
professionalRajesh R Subramanian20-May-08 2:38 
GeneralRe: Connect database when start with window Pin
Cedric Moonen20-May-08 2:30
Cedric Moonen20-May-08 2:30 
GeneralRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:35
professionalRajesh R Subramanian20-May-08 2:35 
GeneralRe: Connect database when start with window Pin
Cedric Moonen20-May-08 2:37
Cedric Moonen20-May-08 2:37 
GeneralRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:39
professionalRajesh R Subramanian20-May-08 2:39 
GeneralRe: Connect database when start with window Pin
Cedric Moonen20-May-08 2:43
Cedric Moonen20-May-08 2:43 
GeneralRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:48
professionalRajesh R Subramanian20-May-08 2:48 
GeneralRe: Connect database when start with window Pin
capint20-May-08 2:39
capint20-May-08 2:39 
GeneralRe: Connect database when start with window Pin
capint20-May-08 2:52
capint20-May-08 2:52 
QuestionRe: Connect database when start with window Pin
David Crow20-May-08 3:21
David Crow20-May-08 3:21 

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.