Re: Inter-app communication
- From: "Ben Voigt [C++ MVP]" <rbv@xxxxxxxxxxxxx>
- Date: Tue, 13 Nov 2007 17:26:07 -0600
"Steph" <steph@xxxxxxxxxxxxxxxxx> wrote in message
news:FE1DC58D-315F-42A6-A6A1-6E5670B3EB75@xxxxxxxxxxxxxxxx
I'm writing a menu app, which will launch lots of other apps, some which
will
be written by me, others not. I want to be able to ask those apps whether
or
not they are currently able to run. Their answer will depend on many
things,
but for example, they might say no if a particular piece of hardware is
missing.
What I'd like to know, is what the best mechanism for this question and
response is? I could run the app, send it a windows message and wait for a
return message, but then I have the difficulty in deciding how long to
wait
for the response (it may not come), and identifying the sender, as I am
asking several apps the same question.
There must be an accepted way of doing this, I'm just not sure what it is.
I'm using VS2005 (soon 2008) C++ with MFC and Windows Vista
Others have offered alternatives that may be better, if you want to go the
windows message route then look into RegisterWindowMessage and passing your
HWND and unique message id gotten from RegisterWindowMessage in the
environment block of each child.
Any help gratefully accepted.
Steph
.
- Prev by Date: Re: heap
- Next by Date: Re: which way is more efficient to check bit value
- Previous by thread: Re: Inter-app communication
- Next by thread: Re: Inter-app communication
- Index(es):
Relevant Pages
|