Solved

How to Tell an .exe has finished Initializing during Start Up

Posted on 2004-08-12
2
125 Views
Last Modified: 2010-05-02
I run a .exe from my code and I can tell that it is still initializing because there as an hour glass. I mean Win2000 must know that it has not finished or else it wouldn't show the hour glass until done.

What I want to do is to be able to tell when it is done initializing before I go on with my code. The .exe stays open and running during the entire life of my VB app. I just want to wait for it to finish initializing before I start communicating with it.

I have been using a timer loop where I check if the exe is available and if not I keep looping.

But I want to know if there is a more clean and for sure way of telling.

Is there a Win API that I can use?
0
Comment
Question by:really24
[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
 
LVL 26

Accepted Solution

by:
EDDYKT earned 500 total points
ID: 11786536
Try this

http://www.thescarms.com/vbasic/AppResponse.asp


Since VB is single thread, if VB is still initializing, you should not get response.


Just guessing
0
 
LVL 4

Expert Comment

by:kurian2z5
ID: 11790430
Form_Initialize event is called as soon as the program is run. but Form_Load is called only after all initializations are complete. just make the app send a message to ur other app in Form_load
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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 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…

691 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