Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MutEx
Message
 
À
02/12/1998 13:20:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Re: MutEx
Divers
Thread ID:
00162851
Message ID:
00163610
Vues:
23
>>>George,
>>>
>>>Just finished reading your solution to preventing multiple application launches in FPA/11/98. Very elegant. My own is not nearly so nice, so I expect to use yours in my next rewrite.
>>>
>>>A very nice piece of work.
>>>
>>Hi Jim,
>>
>>The kind words are much appreciated.
>>
>>Thanks,
>PMFJI,
>
>Hi George,
>while this subject came up -
>On the subject of finding the original instance
>since it seems we cannot define out own class for windows and the title itself can change - it might be a better idea to use the API SetProp and GetProp functions (SetProp when creating the mutex and GetProp while looping through all desktop windown when trying to locate the original instnace)
>
Hi Arnon,

Admittedly, I've never played around with either SetProp() or GetProp(), so I'm not really sure how I'd apply them to solve this problem. In actual production, what I do is use the Is_Run32() function that I wrote to locate the original instance. Since it's available from the download section here, I couldn't include it in the article.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform