Re: Inter-app communication

Tech-Archive recommends: Fix windows errors by optimizing your registry




"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




.



Relevant Pages

  • Re: TWAPI - how to register a callback to a Shutdown (or similar) event?
    ... wm protocol. ... Windows message WM_QUERYENDSESSION which all apps ... register a callback for a Shutdown, LogOff, etc. event! ...
    (comp.lang.tcl)
  • Re: Inter-app communication
    ... Each DLL will match a method signature and you just know that each of your applications have this DLL. ... 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, and identifying the sender, as I am asking several apps the same question. ...
    (microsoft.public.vc.language)
  • Re: Program Not Responding
    ... Thanks for the response. ... I have concluded that this may be an OS glitch, ... graphics and CAD apps] I have excluded viruses, malware, and hardware [e.g. ... automatic update of WinXP. ...
    (microsoft.public.windowsxp.general)
  • sudden change in behavior???
    ... click on a favorites link, or follow links to other pages, I fly through just ... getting great response. ... At times when this happens, the apps stop responding, and I try to stop the ... set up as a network printer). ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Thinking Clearly
    ... Well IMO your response was a little too thin on what difficulties one can ... I've leave it to others to judge is that's a crummy ... AFAIK WPF/E is aimed at browser hosted client apps rather than desktop apps. ...
    (borland.public.delphi.non-technical)