>>>>>Is there a way to prevent users from having 2 instances of a foxpro app running at the same time.
>>>>>thanks.
>>>>
>>>>Hi Timothy,
>>>>In last November's FoxPro Advisor I wrote an article on how to do this. Check out:
Create Single-Instance Applications on their site.
>>>
>>>I will check it out George, I did send you an email concerning is_run32 however.
>>>Should I diregard that function?
>>
>>Hi Timothy,
>>
>>If you sent the email by clicking on my envelope, it went to my house and I won't get it until this evening.
>>
>>AFAIK, there shouldn't be a problem with it. I still use it and it works fine. May I ask why you're asking?
Hi Timothy,
>Well, I was wondering the exact syntax of using is_run32.
All you have to do is pass the known portion of the title bar:
lnhWnd = Is_Run32("Caption to find")
IF lnhWnd = 0
ELSE
ENDIF
>In the mutex example, I am not sure to use the different functions you've listed.
Actually, all of them. As side note, I couldn't include Is_Run32() in the article because it's available for free download from here. That's why I use FindWindow() in the article. In my actual work, however, I use Is_Run().
If you have any specific questions about the article, either post them here or email me.
Have a good weekend,
George
Ubi caritas et amor, deus ibi est