Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running application
Message
De
12/09/2002 09:40:33
 
 
À
12/09/2002 08:56:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00699671
Message ID:
00699737
Vues:
22
>Hi,
>
>You have a few options that can achieve this.
>
>1. Use the CreateMutex Function API
>2. Create a temporary user specific local file and keep a handle to throughout the duration of the application. If the user tries to create a second instance you can detect the undeletable version of this file and stop the application opening. If the app crashes, your file can be deleted.
>3. Use George Taskers Is_Run available in the downloads. If this uses getwindowtext, I am not sure.

You ignored my ClsEvent class, which can manage a single-instance -anything- within a single machine - it permits named event objects, so that several single-instance event monitors can be running independently at the same time on a single system...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform