Re: VB6 WinXP How to check if another app is running

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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








.



Relevant Pages

  • Re: How to determine PDA resolution (DPI) in .Net compact framewor
    ... Why can't you auto update the CF2 as well as your app? ... I read MSDN article that .Net compact framework automatically resize ... I want to display different bitmap ... determine the resolution at run time then I can read corresponding ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to determine PDA resolution (DPI) in .Net compact framewor
    ... Why can't you auto update the CF2 as well as your app? ... I read MSDN article that .Net compact framework automatically resize ... I want to display different bitmap ... determine the resolution at run time then I can read corresponding ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: DNS and Netbios name
    ... Having run Symantec products for a long time, I must say that I have not run into a situation where it depends on WINS for name resolution. ... The one exception I see to this is if the app uses the Browser service for any portion of its functionality. ... So I guess it would be safe to say, it really depends on the app and how it uses NetBIOS. ...
    (microsoft.public.windows.server.dns)
  • Re: Fast timing and serial port ?
    ... > I have an app which controls an external device via an RS232 ... > serial port and standard port driver. ... however the basic timing resolution available ...
    (comp.os.linux.development.apps)
  • Re: Screen Resolution Settings
    ... Dave wrote: ... > or two has caused the resolution settings to no longer be saved. ... > each user logs in they have to reset their setting for their ... > Is there registry setting that might have gotten reset during an ...
    (microsoft.public.windowsxp.basics)