Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Check if another application has been closed

Posted on 1998-11-02
2
Medium Priority
?
153 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
cimir earned 100 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses

664 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