Click here to Skip to main content
15,914,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can we stop an .exe from anthoer .exe Pin
Cedric Moonen28-Mar-11 3:00
Cedric Moonen28-Mar-11 3:00 
GeneralRe: Can we stop an .exe from anthoer .exe Pin
CPallini28-Mar-11 3:12
mveCPallini28-Mar-11 3:12 
GeneralRe: Can we stop an .exe from anthoer .exe Pin
pandit8428-Mar-11 3:29
pandit8428-Mar-11 3:29 
QuestionRe: Can we stop an .exe from anthoer .exe Pin
Rajesh R Subramanian28-Mar-11 3:42
professionalRajesh R Subramanian28-Mar-11 3:42 
GeneralRe: Can we stop an .exe from anthoer .exe Pin
pandit8428-Mar-11 3:50
pandit8428-Mar-11 3:50 
QuestionRe: Can we stop an .exe from anthoer .exe Pin
Rajesh R Subramanian28-Mar-11 3:58
professionalRajesh R Subramanian28-Mar-11 3:58 
AnswerRe: Can we stop an .exe from anthoer .exe Pin
pandit8428-Mar-11 4:20
pandit8428-Mar-11 4:20 
GeneralRe: Can we stop an .exe from anthoer .exe Pin
Stefan_Lang28-Mar-11 5:39
Stefan_Lang28-Mar-11 5:39 
What I would do is create a program 'work_cmd.exe' for your target platform that only handles the communication with your Win32 UI and nothing else. Your current worker.exe then should be demoted to a thread, and will be spawned from 'work_cmd.exe'. It will still be responsible for spawning the 32 sub-threads, but it needs explicit functions for the purpose of suspending or resuming those threads.

Your 'work_cmd.exe' can then just tell your worker thread to suspend it's dependend threads, and, upon completion, suspend the worker thread itself. To resume, it resumes your worker thread, and then tells it to resume its 'sub-threads'.

Note that my suggestion takes two commands to suspend or resume your threads, as 'work_cmd.exe' doesn't know about the additional threads and delegates their management to your worker thread. This assumes that the additional threads will not automatically be suspended with their parent. Maybe it's possible to spawn them in a way that forces them to be suspended whenever their parent is, but that might depend on your RTOS. (I'm not familiar with RTX)

Note, also, that 'work_cmd.exe' will have to keep running and listening for UI commands.
GeneralRe: Can we stop an .exe from anthoer .exe Pin
CPallini28-Mar-11 6:02
mveCPallini28-Mar-11 6:02 
AnswerRe: Can we stop and .exe from anthoer .exe Pin
Rolf Kristensen28-Mar-11 7:07
Rolf Kristensen28-Mar-11 7:07 
GeneralRe: Can we stop and .exe from anthoer .exe Pin
pandit8428-Mar-11 7:19
pandit8428-Mar-11 7:19 
QuestionHow to screenshot as a single color bitmap file? Pin
wangningyu27-Mar-11 17:17
wangningyu27-Mar-11 17:17 
AnswerRe: How to screenshot as a single color bitmap file? Pin
Ozer Karaagac28-Mar-11 14:11
professionalOzer Karaagac28-Mar-11 14:11 
GeneralRe: How to screenshot as a single color bitmap file? Pin
wangningyu28-Mar-11 14:18
wangningyu28-Mar-11 14:18 
GeneralRe: How to screenshot as a single color bitmap file? Pin
wangningyu28-Mar-11 17:38
wangningyu28-Mar-11 17:38 
GeneralRe: How to screenshot as a single color bitmap file? Pin
Ozer Karaagac28-Mar-11 18:19
professionalOzer Karaagac28-Mar-11 18:19 
QuestionHow to create a windowless control after implementing all the necessary interfaces? Pin
followait26-Mar-11 22:04
followait26-Mar-11 22:04 
QuestionLetter drawing Pin
transoft25-Mar-11 6:40
transoft25-Mar-11 6:40 
AnswerRe: Letter drawing Pin
Richard MacCutchan25-Mar-11 7:21
mveRichard MacCutchan25-Mar-11 7:21 
AnswerRe: Letter drawing Pin
Code-o-mat25-Mar-11 10:02
Code-o-mat25-Mar-11 10:02 
AnswerRe: Letter drawing Pin
Niklas L26-Mar-11 8:53
Niklas L26-Mar-11 8:53 
QuestionKey Press Event Pin
rjkg25-Mar-11 2:44
rjkg25-Mar-11 2:44 
AnswerRe: Key Press Event Pin
Joan M26-Mar-11 3:46
professionalJoan M26-Mar-11 3:46 
Questionproblem when using (detours lib) SetDll.exe to Add a dll to an exe file. Pin
gogosai24-Mar-11 22:13
gogosai24-Mar-11 22:13 
AnswerRe: problem when using (detours lib) SetDll.exe to Add a dll to an exe file. Pin
Nitheesh George24-Mar-11 22:18
Nitheesh George24-Mar-11 22:18 

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.