Solved

Check if another application has been closed

Posted on 1998-11-02
2
145 Views
Last Modified: 2010-04-30
I use VB4 32bit apps with Windows 95.
From with-in my VB4 application, i need to know when another application (NetScape) has been closed.
Note. I also start NetScape from with-in my application with
Shell.
0
Comment
Question by:bosborn
2 Comments
 

Accepted Solution

by:
cimir earned 50 total points
ID: 1442851
Capture the variable which contains the reference to the shell function (e.g : Retval=shell(....), Retval is the referenced variavle), and use it with the Activate function, ti activate the application window. if the application is still alive then everything is OK. But if the application is not running any more, this operation will make an error. Trap this error and you will now that your application is closed.
0
 

Author Comment

by:bosborn
ID: 1442852
Hi CIMIR
            Good Idea but......
Thank for the answer, I have tried it with a delay, but each time i do AppActivate this interupts the application. The application that i wish to monitor is NetScape so each time an Activate occures it interupts what i'm doing with-in Netscape.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now