Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting an existing instance of VFP app running
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00005151
Message ID:
00005280
Vues:
20
>Somebody posted on Foxpro-L (a few months ago) a WinAPI method that does the following within a VFP app:
> - When a VFP app loads, checks to see if an instance of VFP is already running the same app.
> - If not, goes ahead and runs like the usual app is supposed to.
> - If not, gives focus to (and if minimized, restores) the existing instance, then exits.
>
>Can somebody repost that snippet, please? Seems like a great way to keep meathead users -- those who repeatedly forget that their app is already running -- from constantly re-instancing the application.
>
>Thanks very much!

Also, check out the MS KB article Q109059. This gives an overview of how to create a 10 line program using FoxTools.FLL to access some Window calls to get the necessary information. I have not used it yet, and I am curious if it works. Let me know how U make out! Hasta Lluego...
Steve Medvid
Systems Analyst

Environmental Resource Management
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform