Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventing an app to be started twice
Message
From
26/11/1996 18:14:53
 
 
To
26/11/1996 18:12:27
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00013585
Message ID:
00013651
Views:
37
>C propgram is fine but the quickest way it's may be API call:
> DECLARE INTEGER FindWindow in win32api INTEGER,STRING
> if FindWindow(0,oSystem.Apptitle)<>0
> QUIT
> endif
>Put this code to first lines of your App but after oSystem app object created.

No, this is certainly not the quickest way because you have to load another instance of Visual FoxPro in memory before executing the first line of your code. And, in most case, you'll run out of memory before it succeed loading another time.

What can be faster than clicking on the icon and having an instant switch to the application that was already running? :)
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform