Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a parameter to an already running application
Message
De
12/09/2002 19:54:04
 
 
À
12/09/2002 12:24:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00699822
Message ID:
00700009
Vues:
14
>I got an application which can be passed a parameter to view on startup. This is find, well and good until I wanted to have only one instance of the app running at any one time. If the app is already running, how can I pass it the new parameter to load?

You need an IPC mechanism; in addition to using DDE as Sergey mentioned, one of the best mechanisms available is to create an out-of-process COM server as a part of your application - you would then simply set and get properties and invoke methods of the COM server running as a part of your app from any COM-capable application.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform