Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Only open application once
Message
 
À
26/11/2001 09:53:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00585701
Message ID:
00585718
Vues:
22
No problem, you would just substitute the name of your app for "Microsoft Visual Foxpro". It works really well - we actually used it for another reason: to start a specified number of VFP web app servers...
>Thanks for the sample.
>
>Kev
>>Kevin,
>>Here's some sample code(very simple):
>>Declare Integer FindWindow in Win32API Integer,String
>>wclass=0
>>winname="Microsoft Visual Foxpro"
>>apphand=FindWindow(wclass ,winname)
>>IF apphand=0
>> * no other instances found
>>>Hi
>>>
>>>I need an app to only be run once at one time.
>>>
>>>What's the best way to detect if a VFP app is already running ?
>>>
>>>Thanks
>>>Kev
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform