Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a parameter to an already running application
Message
From
12/09/2002 19:54:04
 
 
To
12/09/2002 12:24:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00699822
Message ID:
00700009
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform