Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting an existing instance of VFP app running
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00005151
Message ID:
00005280
Views:
22
>Somebody posted on Foxpro-L (a few months ago) a WinAPI method that does the following within a VFP app:
> - When a VFP app loads, checks to see if an instance of VFP is already running the same app.
> - If not, goes ahead and runs like the usual app is supposed to.
> - If not, gives focus to (and if minimized, restores) the existing instance, then exits.
>
>Can somebody repost that snippet, please? Seems like a great way to keep meathead users -- those who repeatedly forget that their app is already running -- from constantly re-instancing the application.
>
>Thanks very much!

Also, check out the MS KB article Q109059. This gives an overview of how to create a 10 line program using FoxTools.FLL to access some Window calls to get the necessary information. I have not used it yet, and I am curious if it works. Let me know how U make out! Hasta Lluego...
Steve Medvid
Systems Analyst

Environmental Resource Management
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform