Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto close VSS when closing VFP
Message
De
01/02/2001 16:45:37
 
 
À
01/02/2001 10:08:09
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00471230
Message ID:
00471480
Vues:
20
Mike -
I've had to track this down for other apps - so think about these api calls...
1. you've got VSS running.
2. fire off a getwindow(), returning the HWND value to a memory variable.
3. do your stuff.
4. shut down vfp - this calls ...
a. findwindow on HWND value stored in 2
b. SendNotifyMessage on HWND value stored in 2 - and send a quit message to the VSS app.

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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform