Solved

Check if another application has been closed

Posted on 1998-11-02
2
144 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

747 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

13 Experts available now in Live!

Get 1:1 Help Now