General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only