Re: Inter-app communication



I'd suggest a bit more object oriented aproach using COM.
Have a COM object hosted in a DLL outside of that app
return the answer for you and only start the application
if it's warranted. You can also have the COM object in
another small out-of-proc COM server instead of a DLL,
as long as it's not hosted in the application itself.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================

"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

Any help gratefully accepted.
Steph




.



Relevant Pages

  • Re: Firefox and Sound
    ... number of loads that app performed. ... only references to entry points in the dll. ... specified entry points in it can't be found, ... but the download manager said it was only 78.8 MB. ...
    (comp.os.os2.apps)
  • Re: New Delphi roadmap is coming: NO UNICODE PLEASE!
    ... Avoids DLL hell, because it ... The app is deployed and the user is getting an error. ... instances where upgrading .NET broke things that were working. ... Coming from Delphi, this isn't any big deal of course. ...
    (borland.public.delphi.non-technical)
  • Re: What programming language for Future
    ... usually when apps come with scripts, those scripts are for that version ... version of the app. ... Which is exactly the same as when the compiler is shipped with the app. ... for the sole reason that they can't rebuild a working dll. ...
    (comp.lang.misc)
  • Re: Building customized Setup.dll for installations
    ... In the C++ code of your setup DLL write some code that for example sends ... that is also registered by your app when it starts. ... I created a Visual C++ MFC DLL project to design the custom Setup.dll. ... >>> Everything works fine except on uninstall. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: VFP Objects for a beginner - help!
    ... My "stuff" is all large external DB manipulation and reporting ... (reporting via VFP functions that write and publish the html/java script on ... another app. ... VB guy would set a reference to the DLL in his project and then could ...
    (microsoft.public.fox.programmer.exchange)