Mike Yearwood
Toronto, Ontario, Canada
Mike - OK - i've had some time to think about this some more - cause i had to revisit some stuff over the past 2 days.
you CAN do all the stuff for launching using a startup prg file - and then worry about the 'ON SHUTDOWN' functionality ....
if you startup by wrapping a WSH object, then launching the other apps via the WSH - then you absolutely have an object reference to the apps that you've launched inside the WSH object - and you can call the quit methods in each app that is running in the 'ON SHUTDOWN' concept..
but - when you do a 'CLEAR ALL' - that object will GO AWAY - and you lose all the object references to your other apps. Not a good thing, i would think...
another way to kill the apps is via the method i outlined briefly in my first post - but then the question becomes WHEN do you have this thing fire?
remember - SHUTDOWN is really a hook inside the main _VFP object - ... is it settings you've set there really persistent after you do a 'CLEAR ALL' ? my answer is no - and then you lose any hook functionality thingie that you have.
*sigh* ... but - there surely has to be some other wrapper object out there that will not go away when you do a CLEAR ALL - I'll let you know in this thread if I make any headway - perhaps some other UT's will come up with something.
In the meantime - you can surely set up a prg file that handles the QUIT call to the other apps you want to trap and quit using the outline in my previous post.
hth - mondo regards [Bill]
>Hi All
>
>I have VSS launch when I launch VFP by calling a startup program from my config.fpw-like file. In case you wonder why, I have confirmed that VSS integration with the project manager is slower than just switching to VSS, checking out the files and switching back. I also launch the MSDN help at startup.
>
>OK, so now you have the background. I'd like to have VSS close when I exit VFP just like the help does.
>
>I've been thinking it can be done by instantiating an object which launches VSS. However, if (or when) I issue a CLEAR ALL command, this object will be released and so leaving VFP will not close VSS. Is there any way to keep an object instanced (instantiated?) during a CLEAR ALL?
>
>If not, is there some other way to reach this goal?
>
>Thanks people!
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