Click here to Skip to main content
15,878,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUtility Start/Stop Management Service Pin
parths30-Jun-03 21:52
parths30-Jun-03 21:52 
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 
parths wrote:
I had tried GetMessage, but then it doesn't return till it gets a message (any message) (right?), and that's a problem too because then I can't continue processing until I get a message. So I'll have to keep sending dummy messages to the app.

Not necessarily. Modify the message loop so it uses PeekMessage() instead of GetMessage() and do the processing after the PeekMessage() handling:
Do While True
    If PeekMessage(msg, 0, 0, 0, PM_REMOVE) = True Then
        If msg.message = MY_MESSAGE Then
            ExitProcess 0
        Else
            TranslateMessage msg
            DispatchMessage msg
        End If
    End If
    ' Do your processing here
Loop


Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

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 
GeneralRe: Checksum Pin
Toni7830-Jun-03 20:04
Toni7830-Jun-03 20:04 
GeneralRe: Checksum Pin
kakan30-Jun-03 20:03
professionalkakan30-Jun-03 20:03 
GeneralRe: Checksum Pin
Toni7830-Jun-03 20:15
Toni7830-Jun-03 20:15 
GeneralRe: Checksum Pin
kakan30-Jun-03 20:19
professionalkakan30-Jun-03 20:19 
GeneralWin2K : AcceptEx() & getpeername() Pin
cmk30-Jun-03 17:52
cmk30-Jun-03 17:52 
GeneralRe: Win2K : AcceptEx() & getpeername() Pin
Ryan Binns30-Jun-03 18:52
Ryan Binns30-Jun-03 18:52 
GeneralRe: Win2K : AcceptEx() & getpeername() Pin
cmk30-Jun-03 21:06
cmk30-Jun-03 21:06 

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.