Click here to Skip to main content
15,794,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help me to create mouse stick Pin
Jun Du23-Jun-06 6:59
Jun Du23-Jun-06 6:59 
GeneralRe: help me to create mouse stick Pin
Tara1423-Jun-06 7:04
Tara1423-Jun-06 7:04 
QuestionTo stop some activity Pin
rajeevktripathi23-Jun-06 4:44
rajeevktripathi23-Jun-06 4:44 
AnswerRe: To stop some activity Pin
Cedric Moonen23-Jun-06 5:00
Cedric Moonen23-Jun-06 5:00 
AnswerRe: To stop some activity [modified] Pin
ovidiucucu23-Jun-06 5:03
ovidiucucu23-Jun-06 5:03 
GeneralRe: To stop some activity Pin
Cedric Moonen23-Jun-06 5:10
Cedric Moonen23-Jun-06 5:10 
GeneralRe: To stop some activity [modified] Pin
ovidiucucu23-Jun-06 5:25
ovidiucucu23-Jun-06 5:25 
GeneralRe: To stop some activity Pin
David Crow23-Jun-06 5:18
David Crow23-Jun-06 5:18 
Using SuspendThread() and TerminateThread() is very risky, and not nearly as simple as you've described here. Before a thread suspends itself, it needs to ensure that by being suspended, the calling thread is not affected. If a synchronization object is being held by the thread, it would need to be released. Suspending a thread from another, without taking all of the precautions, is not a good idea because the thread being suspended might be in the middle of something important (e.g., memory allocation). This could result in your application entering a "hung" state. If a thread calls TerminateThread() on itself, there is no chance for cleanup. The thread goes away right then and there.


"The largest fire starts but with the smallest spark." - David Crow

"Judge not by the eye but by the heart." - Native American Proverb


GeneralRe: To stop some activity Pin
ovidiucucu23-Jun-06 5:40
ovidiucucu23-Jun-06 5:40 
GeneralRe: To stop some activity Pin
David Crow23-Jun-06 5:51
David Crow23-Jun-06 5:51 
GeneralRe: To stop some activity Pin
Jun Du23-Jun-06 7:07
Jun Du23-Jun-06 7:07 
AnswerRe: To stop some activity Pin
rajeevktripathi23-Jun-06 9:22
rajeevktripathi23-Jun-06 9:22 
Questionobject of resize ,move,rotate with handles in realtime mode [modified] Pin
nn813723-Jun-06 4:05
nn813723-Jun-06 4:05 
AnswerRe: object of resize ,move,rotate with handles in realtime mode Pin
Rage23-Jun-06 4:36
professionalRage23-Jun-06 4:36 
GeneralRe: object of resize ,move,rotate with handles in realtime mode Pin
likeeverybody23-Jun-06 22:05
likeeverybody23-Jun-06 22:05 
AnswerRe: time Pin
Rage23-Jun-06 3:06
professionalRage23-Jun-06 3:06 
GeneralRe: time Pin
toxcct23-Jun-06 5:15
toxcct23-Jun-06 5:15 
QuestionSerial number of the attached monitor(s) Pin
dt-jh23-Jun-06 2:50
dt-jh23-Jun-06 2:50 
QuestionRe: Serial number of the attached monitor(s) Pin
David Crow23-Jun-06 3:44
David Crow23-Jun-06 3:44 
AnswerRe: Serial number of the attached monitor(s) Pin
dt-jh23-Jun-06 3:56
dt-jh23-Jun-06 3:56 
GeneralRe: Serial number of the attached monitor(s) Pin
David Crow23-Jun-06 4:01
David Crow23-Jun-06 4:01 
GeneralRe: Serial number of the attached monitor(s) Pin
dt-jh23-Jun-06 4:12
dt-jh23-Jun-06 4:12 
QuestionRe: Serial number of the attached monitor(s) Pin
David Crow23-Jun-06 5:19
David Crow23-Jun-06 5:19 
AnswerRe: Serial number of the attached monitor(s) Pin
Viorel.23-Jun-06 3:49
Viorel.23-Jun-06 3:49 
GeneralRe: Serial number of the attached monitor(s) Pin
dt-jh23-Jun-06 4:04
dt-jh23-Jun-06 4:04 

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.