Re: VB6 WinXP How to check if another app is running
- From: "Dave O." <nobody@xxxxxxxxxxx>
- Date: Thu, 12 Apr 2007 16:57:58 +0100
I don't really have time to read an entire secondary thread so do you have
control over the code of the second application?
If you do you could have it create a flag file which the other program
monitors. If you are to only allow a single instance you could use a Mutex
for both purposes.
If the launching program does little or nothing while the secondary process
is running then a normal "shell & wait" routine will do the job.
As for "We're a small company and don't have time to do anything right."
WRONG WRONG WRONG. In a small company you should have the flexibility to
allow you to do things correctly as opposed to a large outfit where there's
an imposed company style which may be a bit out of date and inflexible.
Regards
Dave O.
"Jennifer W" <jenniferw@xxxxxxxxxxxxxxx> wrote in message
news:%23et%23WiRfHHA.4032@xxxxxxxxxxxxxxxxxxxxxxx
This is related to my previous 'changing screen resolution' question.
When my user wants to run this other program from within my application, I
want to change the reoslution, launch the other app, then monitor for it
to go away so I can change back the resolution.
It's kind of hokey but I'm in a hurry and as far as I know not many people
are using this other application that we provide. I just need a quick fix
to get this revision out. We're a small company and don't have time to do
anything right.
The other application came out with an update the requires a larger
resolution.
Thanks, Jenn
"Dave O." <nobody@xxxxxxxxxxx> wrote in message
news:OtaHAZRfHHA.3928@xxxxxxxxxxxxxxxxxxxxxxx
The usual way is to enumerate all processes and see if the one you are
looking for is there.
Another way if you are looking for a specific process is to check for a
Mutex.
And there are a few other ways as well, it depends on what you are trying
to achieve.
So, what are you trying to do?
Dave O.
"Jennifer W" <jenniferw@xxxxxxxxxxxxxxx> wrote in message
news:uUbDlTRfHHA.284@xxxxxxxxxxxxxxxxxxxxxxx
Hi Guys,
I really spent some time looking for this answer but could not find
it...
How can I tell if another app is running from within VB6 ?
Thanks, Jennifer
.
- References:
- VB6 WinXP How to check if another app is running
- From: Jennifer W
- Re: VB6 WinXP How to check if another app is running
- From: Dave O.
- Re: VB6 WinXP How to check if another app is running
- From: Jennifer W
- VB6 WinXP How to check if another app is running
- Prev by Date: Re: Activex EXE Crashing,
- Next by Date: Re: Activex EXE Crashing,
- Previous by thread: Re: VB6 WinXP How to check if another app is running
- Next by thread: Re: VB6 WinXP How to check if another app is running
- Index(es):
Relevant Pages
|