Click here to Skip to main content
15,923,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAbout "&" Pin
FlyingDancer30-Jun-03 22:00
FlyingDancer30-Jun-03 22:00 
GeneralRe: About "&" Pin
FlyingDancer30-Jun-03 22:03
FlyingDancer30-Jun-03 22:03 
GeneralRe: About "&" Pin
Toni7830-Jun-03 22:07
Toni7830-Jun-03 22:07 
GeneralRe: About "&" Pin
Cedric Moonen30-Jun-03 22:11
Cedric Moonen30-Jun-03 22:11 
GeneralRe: About "&" Pin
FlyingDancer30-Jun-03 22:26
FlyingDancer30-Jun-03 22:26 
GeneralRe: About "&" Pin
PJ Arends30-Jun-03 22:53
professionalPJ Arends30-Jun-03 22:53 
GeneralRe: About "&" Pin
FlyingDancer30-Jun-03 23:17
FlyingDancer30-Jun-03 23:17 
GeneralUtility Start/Stop Management Service Pin
parths30-Jun-03 21:52
parths30-Jun-03 21:52 
Hi Guys,
I am writing a windows service to start / stop certain utility applications. The utilities are in Vb (Please don't ask me why a background process was programmed in vb, I don't know that myself). I used CreateProcess to start them, that was fine.
Now the problem arises when I want to stop them. I can't use TerminateProcess because the applications may be in the middle of something and I want to wait till they finish the job at hand. So I decided to use messages.
I tried PostThreadMessage. The problem I have was that on the utilities' side, if I used GetMessage then it waits for the message which makes the application hang and if I used PeekMessage then in some cases it was missing the Message altogether.
Finally I thought of using a dummy subclassed form and sending the message to to form. It's working now, but it seems like a mess to me. I'm pretty sure there's a better way. Any suggestions?
thanks.
P

"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman

GeneralRe: Utility Start/Stop Management Service Pin
Toni7830-Jun-03 22:03
Toni7830-Jun-03 22:03 
GeneralRe: Utility Start/Stop Management Service Pin
parths30-Jun-03 22:09
parths30-Jun-03 22:09 
GeneralRe: Utility Start/Stop Management Service Pin
Ryan Binns30-Jun-03 22:53
Ryan Binns30-Jun-03 22:53 
GeneralRe: Utility Start/Stop Management Service Pin
parths30-Jun-03 23:27
parths30-Jun-03 23:27 
GeneralRe: Utility Start/Stop Management Service Pin
Ryan Binns30-Jun-03 23:44
Ryan Binns30-Jun-03 23:44 
GeneralRe: Utility Start/Stop Management Service Pin
parths30-Jun-03 23:58
parths30-Jun-03 23:58 
GeneralRe: Utility Start/Stop Management Service Pin
Ryan Binns1-Jul-03 0:13
Ryan Binns1-Jul-03 0:13 
GeneralAlt+Return == Strange Sound Sfx Pin
Mathias S.30-Jun-03 21:40
Mathias S.30-Jun-03 21:40 
GeneralCreate a dynaset Recordset from an Excel sheet Pin
Andy@30-Jun-03 21:31
Andy@30-Jun-03 21:31 
GeneralRe: Create a dynaset Recordset from an Excel sheet Pin
Olli9-Jul-03 3:42
Olli9-Jul-03 3:42 
GeneralRe: Create a dynaset Recordset from an Excel sheet Pin
Andy@9-Jul-03 4:17
Andy@9-Jul-03 4:17 
Questionhow do i Detect if an external program has finished excuting(shellexec)? Pin
Member 40481330-Jun-03 20:35
Member 40481330-Jun-03 20:35 
AnswerRe: how do i Detect if an external program has finished excuting(shellexec)? Pin
Toni7830-Jun-03 20:44
Toni7830-Jun-03 20:44 
AnswerRe: how do i Detect if an external program has finished excuting(shellexec)? Pin
Rage30-Jun-03 20:48
professionalRage30-Jun-03 20:48 
AnswerRe: how do i Detect if an external program has finished excuting(shellexec)? Pin
cmk30-Jun-03 20:52
cmk30-Jun-03 20:52 
GeneralChecksum Pin
Toni7830-Jun-03 19:27
Toni7830-Jun-03 19:27 
GeneralRe: Checksum Pin
Michael Dunn30-Jun-03 19:52
sitebuilderMichael Dunn30-Jun-03 19:52 

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.