Solved

Call my program itself.

Posted on 1999-01-25
1
160 Views
Last Modified: 2010-04-02
What is the difference between print banding and
non-banding ? Which is the better ?
What is the difference between programming in lazer printer
and HP Deskjet (670C)printer ?
How can I return the program after I sent WM_CLOSE to it( that means I want to close my program and after that it can
call itself again), like this :
 My program include 2 modun A and B. At the beginning, A can run or call B. If A call B, B is ruuning and when B finished it auto close the program and call again to the beginning (A run) . User only can close program only they close A.



0
Comment
Question by:longlong
1 Comment
 
LVL 10

Accepted Solution

by:
viktornet earned 50 total points
Comment Utility
you can use one of these...

WinExec()
ShellExecute()
CreateProcess()

then when you execute app B it would wait and see when A is gonna close down. When this happens your B programs does some stuff and runs back app A, and the process can continue on and on...

YOu can use WaitForSingleObject() so your program can wait until the other closes down...

Hope this helps...

-Viktor
--Ivanov
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

763 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

8 Experts available now in Live!

Get 1:1 Help Now