Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning to an exe from an exe
Message
From
18/05/2002 15:30:49
 
 
To
18/05/2002 15:26:22
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00658606
Message ID:
00658607
Views:
15
>Hi. VFP7 user. I am calling a (fox) exe from another (fox) exe. I have a 'Quit' button in the second exe. What code would I use (and where) to release the second exe and return to the first?

This simplest way would be to call the second EXE, create a file on disk, and loop, waiting for that file to be deleted. In the second EXE, when you quit out, DELETE the file, then the first EXE shoudl continue on its merry way.

Option number two woudl be to try LaunchAppAndWait() from Ed Rauh's RunAPI file.

Finally, you could turn the second EXE into an Automation Server (COM EXE or DLL). When the first one calls teh second one, any commands will be syncrnous between them, and best of all, any methods you call will be able to accept and return parameters.
Previous
Reply
Map
View

Click here to load this message in the networking platform