Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check if application is already running

Status
Not open for further replies.

ShortyII

Programmer
Sep 8, 2003
57
NL
Hi i was using this function to check if the application was alreay running but now i changed to fox8 it doesn't work anymore?

i searched the internet to see if the foxtools names changed or something like that but i can't find it.

AnyOne???


FUNCTION l1_appinuse
PARAMETERS lWindowTitle

SET LIBRARY TO CFYPATH + "\exe\foxtools.fll" ADDITIVE
lGetwind = regfn("FindWindow","CC","I")
lWclass=0
lHandle=callfn(lGetwind,lWclass,lWindowTitle)
IF lHandle <> 0
ON KEY LABEL ESCAPE *
SET ESCAPE OFF
R=l1_beep(&quot;error&quot;)
WAIT WINDOW &quot;THIS PROGRAM IS ALREADY RUNNING !&quot; NOWAIT
QUIT
ENDIF
SET LIBRARY TO
RETURN .F.
 
Hi

There are a number of FAQs on this.

The one I have been using for quite some time is,
How to ensure that only one instance of my application is running in my desktop.
faq184-839

:)

ramani :)
(Subramanian.G)
 
Thanx for the FAQ have to say i didn't checked that page :(
Will do next time there are some great things on it :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top