Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple instances of vfp running
Message
De
05/12/2002 13:37:55
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00728786
Message ID:
00729993
Vues:
26
>Is there a way to test if another instance of VFP is running. My aim is to prevent it from happening with users.

Your users don't have VFP? Do they?
If that's the case, as I suppose, then your question is more like how to avoid running a second instance of your program (your EXE).

A flag in the disk is a cheap solution. Not that good or sophisticated but cheap.

A better one, used by commercial frameworks, is to use a user manager. This way, whenever they login into your app you can control if they are already there, by checking into a user table. Any other instance would use the same table (assuming your app is installed once per directory per machine).

A way to avoid users installing two copies of your app is to suplly an install routine that uses the registry. Else, with a simple copy/paste installation they could install more than one copy.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform