Click here to Skip to main content
15,917,060 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralListen! [modified] Pin
Eytukan26-Sep-07 4:37
Eytukan26-Sep-07 4:37 
GeneralRe: Replace numbers with words? Pin
David Crow26-Sep-07 3:22
David Crow26-Sep-07 3:22 
GeneralRe: Replace numbers with words? Pin
El Corazon26-Sep-07 3:27
El Corazon26-Sep-07 3:27 
GeneralRe: Replace numbers with words? Pin
Shog926-Sep-07 3:55
sitebuilderShog926-Sep-07 3:55 
GeneralRe: Replace numbers with words? Pin
Jeremy Falcon26-Sep-07 5:04
professionalJeremy Falcon26-Sep-07 5:04 
GeneralRe: Replace numbers with words? Pin
Shog926-Sep-07 5:08
sitebuilderShog926-Sep-07 5:08 
GeneralRe: Replace numbers with words? Pin
El Corazon26-Sep-07 5:12
El Corazon26-Sep-07 5:12 
GeneralRe: Replace numbers with words? Pin
Jeremy Falcon26-Sep-07 5:16
professionalJeremy Falcon26-Sep-07 5:16 
GeneralRe: Replace numbers with words? Pin
El Corazon26-Sep-07 6:43
El Corazon26-Sep-07 6:43 
AnswerRe: Replace numbers with words? Pin
Stephen Hewitt25-Sep-07 21:23
Stephen Hewitt25-Sep-07 21:23 
AnswerRe: Replace numbers with words? Pin
Jeremy Falcon26-Sep-07 4:56
professionalJeremy Falcon26-Sep-07 4:56 
Questionneed help Pin
gentleguy25-Sep-07 16:43
gentleguy25-Sep-07 16:43 
AnswerRe: need help Pin
Nishad S25-Sep-07 17:32
Nishad S25-Sep-07 17:32 
QuestionHow to get started in win32 api Pin
freeheap25-Sep-07 14:32
freeheap25-Sep-07 14:32 
AnswerRe: How to get started in win32 api Pin
Mark Salsbery25-Sep-07 14:50
Mark Salsbery25-Sep-07 14:50 
AnswerRe: How to get started in win32 api Pin
Stephen Hewitt25-Sep-07 14:57
Stephen Hewitt25-Sep-07 14:57 
AnswerRe: How to get started in win32 api Pin
Nishad S25-Sep-07 17:36
Nishad S25-Sep-07 17:36 
AnswerRe: How to get started in win32 api Pin
Hamid_RT25-Sep-07 20:41
Hamid_RT25-Sep-07 20:41 
AnswerRe: How to get started in win32 api Pin
David Crow26-Sep-07 3:28
David Crow26-Sep-07 3:28 
AnswerRe: How to get started in win32 api Pin
Jeremy Falcon26-Sep-07 5:25
professionalJeremy Falcon26-Sep-07 5:25 
QuestionResumeThread not calling function Pin
rp_suman25-Sep-07 14:10
rp_suman25-Sep-07 14:10 
AnswerRe: ResumeThread not calling function [modified] Pin
Mark Salsbery25-Sep-07 14:29
Mark Salsbery25-Sep-07 14:29 
AnswerRe: ResumeThread not calling function Pin
Stephen Hewitt25-Sep-07 14:49
Stephen Hewitt25-Sep-07 14:49 
Mark is correct; you shouldn't use SuspendThread/ResumeThread in this way!

The following quote is from MSDN on SuspendThread (the underlines are mine):
This function is primarily designed for use by debuggers. It is not intended to be used for thread synchronization. Calling SuspendThread on a thread that owns a synchronization object, such as a mutex or critical section, can lead to a deadlock if the calling thread tries to obtain a synchronization object owned by a suspended thread. To avoid this situation, a thread within an application that is not a debugger should signal the other thread to suspend itself. The target thread must be designed to watch for this signal and respond appropriately.


The following link may also be of interest:
 http://blogs.msdn.com/oldnewthing/archive/2003/12/09/55988.aspx[^]

I suggest you review the documentation more carefully in future.


Steve

GeneralRe: ResumeThread not calling function Pin
rp_suman25-Sep-07 15:05
rp_suman25-Sep-07 15:05 
Questionif problems Pin
dellthinker25-Sep-07 12:19
dellthinker25-Sep-07 12:19 

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.