Click here to Skip to main content
15,903,736 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need your help Pin
super_ttd30-Aug-08 23:31
super_ttd30-Aug-08 23:31 
Questionassignment help Pin
mooshi mooshi27-Aug-08 21:23
mooshi mooshi27-Aug-08 21:23 
GeneralRe: assignment help Pin
CPallini27-Aug-08 22:09
mveCPallini27-Aug-08 22:09 
QuestionRe: assignment help Pin
David Crow28-Aug-08 3:40
David Crow28-Aug-08 3:40 
QuestionArray Pin
rdop27-Aug-08 20:43
rdop27-Aug-08 20:43 
AnswerRe: Array Pin
Arman S.27-Aug-08 20:49
Arman S.27-Aug-08 20:49 
GeneralRe: Array Pin
rdop27-Aug-08 20:56
rdop27-Aug-08 20:56 
GeneralRe: Array Pin
laksh220427-Aug-08 21:33
laksh220427-Aug-08 21:33 
AnswerRe: Array Pin
SandipG 27-Aug-08 21:15
SandipG 27-Aug-08 21:15 
GeneralRe: Array Pin
rdop27-Aug-08 21:26
rdop27-Aug-08 21:26 
AnswerRe: Array Pin
raesa27-Aug-08 21:17
raesa27-Aug-08 21:17 
QuestionRe: Array Pin
David Crow28-Aug-08 3:45
David Crow28-Aug-08 3:45 
AnswerRe: Array Pin
raesa28-Aug-08 17:42
raesa28-Aug-08 17:42 
AnswerRe: Array Pin
CPallini27-Aug-08 22:07
mveCPallini27-Aug-08 22:07 
AnswerRe: Array Pin
David Crow28-Aug-08 3:44
David Crow28-Aug-08 3:44 
QuestionInserting value in list control through worker thread Pin
VCProgrammer27-Aug-08 20:39
VCProgrammer27-Aug-08 20:39 
AnswerRe: Inserting value in list control through worker thread Pin
Nibu babu thomas27-Aug-08 20:50
Nibu babu thomas27-Aug-08 20:50 
GeneralRe: Inserting value in list control through worker thread Pin
VCProgrammer27-Aug-08 20:53
VCProgrammer27-Aug-08 20:53 
GeneralRe: Inserting value in list control through worker thread Pin
Nibu babu thomas27-Aug-08 21:47
Nibu babu thomas27-Aug-08 21:47 
GeneralRe: Inserting value in list control through worker thread Pin
Dhiraj kumar Saini27-Aug-08 21:54
Dhiraj kumar Saini27-Aug-08 21:54 
QuestionRe: Inserting value in list control through worker thread Pin
Roger Stoltz27-Aug-08 20:56
Roger Stoltz27-Aug-08 20:56 
AnswerRe: Inserting value in list control through worker thread Pin
Arman S.27-Aug-08 21:20
Arman S.27-Aug-08 21:20 
QuestionWaitForSingleObject and SetEvent Pin
laksh220427-Aug-08 20:36
laksh220427-Aug-08 20:36 
AnswerRe: WaitForSingleObject and SetEvent Pin
Roger Stoltz27-Aug-08 20:46
Roger Stoltz27-Aug-08 20:46 
All synchronization objects works the same way regarding this, e.g. locking a mutex, releasing a semaphore or setting an event.
In your case the event will be set until some thread calls any of the wait functions such as ::WaitForSingleObject(). The event may be set up to automatically reset when the thread that waits on the event gets released, or it may be set to be "manual reset" in which case you have to call ::ResetEvent() to set the event in a non-signalled state.

But, you have to call any of the waiting functions in order to find out whether the event is signalled or not.
You may call ::WaitForSingelObject() with a timeout value of zero in which case the function will return with WAIT_TIMEOUT unless the event was set.


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


QuestionFTP client application Pin
anandi_codeproject27-Aug-08 20:23
anandi_codeproject27-Aug-08 20:23 

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.