 | | From: | evilaro | | Subject: | Stopping loadind the application 2 times | | Date: | Thu, 20 Jan 2005 00:06:59 +0100 |
|
|
 | To all:
My aplication is not prepared to be run for more than one user at a time.
Still people minimize the aplication, and then forget about it (myself toooo) and then load the aplication again creating a error.
I have put several traps .... but not always work.
What would be the best system either to:
Stop compleatelly the loading of a second program. or if they do, to inform so they can cancel it.
I would appreciate some help on this, it is driving me nuts...
Emilio
|
|
 | | From: | Heinz Kesting | | Subject: | Re: Stopping loadind the application 2 times | | Date: | Thu, 20 Jan 2005 19:53:13 +0100 |
|
|
 | Hi evilaro, There is another solution in the dUFLP: a program named IsExeOpen.prg Its purpose is the same, you get a logical return value if the *.exe is already open. This one does not use API functions. Take a look what suits you best.
Best regards, Heinz
|
|
 | | From: | evilaro | | Subject: | Re: Stopping loadind the application 2 times | | Date: | Thu, 20 Jan 2005 22:04:15 +0100 |
|
|
 | Heinz:
Very good...
It is amazing the amount of ways to solve one problem,
It works
Emilio
"Heinz Kesting" escribió en el mensaje news:%23cMsCGy$EHA.1128@news-server... > Hi evilaro, > There is another solution in the dUFLP: a program named IsExeOpen.prg > Its purpose is the same, you get a logical return value if the *.exe is > already open. > This one does not use API functions. > Take a look what suits you best. > > Best regards, Heinz > >
|
|
 | | From: | Todd Kreuter [dBVIPS] | | Subject: | Re: Stopping loadind the application 2 times | | Date: | Wed, 19 Jan 2005 18:23:01 -0500 |
|
|
 | evilaro wrote: > > Stop compleatelly the loading of a second program. > or if they do, to inform so they can cancel it. > > I would appreciate some help on this, it is driving me nuts...
Hello Emilio,
I have seen some just restore the the already open application when a use clicks on the short-cut icon. Would be nice to be able to do that.
I recall something you can use to prevent a second instance of your application from running, don't rememeber the name, but it should be in the dUFLP. Maybe app something or another.
-- Todd Kreuter [dBVIPS]
|
|
 | | From: | Michael Nuwer [dBVIPS] | | Subject: | Re: Stopping loadind the application 2 times | | Date: | Thu, 20 Jan 2005 06:51:41 -0500 |
|
|
 | Todd Kreuter [dBVIPS] wrote: > evilaro wrote: > >>Stop compleatelly the loading of a second program. >>or if they do, to inform so they can cancel it. >> >>I would appreciate some help on this, it is driving me nuts... > > > Hello Emilio, > > I have seen some just restore the the already open application when a > use clicks on the short-cut icon. Would be nice to be able to do that. > > I recall something you can use to prevent a second instance of your > application from running, don't rememeber the name, but it should be in > the dUFLP. Maybe app something or another. >
Perhaps :duflp:appFlag.cc
-- Michael Nuwer http://www.nuwermj.potsdam.edu/dLearn/ http://www.nuwermj.potsdam.edu/dSamples/
"I would rather be vaguely right, than precisely wrong." -- John Maynard Keynes
|
|
 | | From: | evilaro | | Subject: | Re: Stopping loadind the application 2 times | | Date: | Thu, 20 Jan 2005 22:01:52 +0100 |
|
|
 | > Perhaps :duflp:appFlag.cc
Perhaps... perhaps... perhaps
Thanks
Emilio
> > -- > Michael Nuwer > http://www.nuwermj.potsdam.edu/dLearn/ > http://www.nuwermj.potsdam.edu/dSamples/ > > "I would rather be vaguely right, than precisely wrong." > -- John Maynard Keynes
|
|
 | | From: | Todd Kreuter [dBVIPS] | | Subject: | Re: Stopping loadind the application 2 times | | Date: | Thu, 20 Jan 2005 08:07:58 -0500 |
|
|
 | "Michael Nuwer [dBVIPS]" wrote: > > Perhaps :duflp:appFlag.cc
Yes, that would be it. Thanks.
-- Todd Kreuter [dBVIPS]
|
|
 | | From: | evilaro | | Subject: | Re: Stopping loadind the application 2 times | | Date: | Thu, 20 Jan 2005 22:00:22 +0100 |
|
|
 | Yes Todd:
It is and it is good.
Thanks
Emilio
"Todd Kreuter [dBVIPS]" escribió en el mensaje news:41EFAD2E.B776345D@dbvips.usa... > "Michael Nuwer [dBVIPS]" wrote: > > > > Perhaps :duflp:appFlag.cc > > Yes, that would be it. Thanks. > > -- > Todd Kreuter [dBVIPS]
|
|
 | | From: | Ken Mayer [dBVIPS] | | Subject: | Re: Stopping loadind the application 2 times | | Date: | Thu, 20 Jan 2005 05:28:16 -0800 |
|
|
 | evilaro wrote: > To all: > > My aplication is not prepared to be run for more than one user > at a time. > > Still people minimize the aplication, and then forget about it (myself > toooo) > and then load the aplication again creating a error. > > I have put several traps .... but not always work. > > > What would be the best system either to: > > Stop compleatelly the loading of a second program. > or > if they do, to inform so they can cancel it. > > I would appreciate some help on this, it is driving me nuts...
Have you looked at appFlag.cc in the dUFLP?
Ken
-- /(Opinions expressed are purely my own, not those of dataBased Intelligence, Inc.)/
*Ken Mayer* [dBVIPS] /Golden Stag Productions/ dBASE at goldenstag dot net http://www.goldenstag.net/GSP http://www.goldenstag.net/dbase
|
|
 | | From: | evilaro | | Subject: | Re: Stopping loadind the application 2 times | | Date: | Thu, 20 Jan 2005 22:03:21 +0100 |
|
|
 | Yes Ken thanks:
A Gold mine... Even Better... everything there is priceless.
Emilio
"Ken Mayer [dBVIPS]" escribió en el mensaje > > Have you looked at appFlag.cc in the dUFLP? > > Ken > > -- > /(Opinions expressed are purely my own, not those of dataBased > Intelligence, Inc.)/ > > *Ken Mayer* [dBVIPS] > /Golden Stag Productions/ > dBASE at goldenstag dot net > http://www.goldenstag.net/GSP > http://www.goldenstag.net/dbase
|
|