Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro running twice
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00184311
Message ID:
00185132
Vues:
19
>>>Make that "not real sure of what you're trying to do".
>>>
>>>Geez, it's Monday isn't it?:-)
>>
>>All day unfortunately.
>>
>>I AM trying to prevent a 2nd instance or at least warn the user.
>>using the:
>>
>>lnhWnd = Is_Run32('funds program')
>>IF lnhWnd > 0
>> * It's running
>>ENDIF method
>>
>>seems like an easy way to do it. Am I on the right track?
>
>Yep, it's simple and direct. One of the reasons that I used the mutex in the article is that it's one of the documented ways to prevent multiple instances of an application. It's also faster than looping through the windows.
\
Quest is, does that code just above, test for the SECOND instance only?
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform