Solved

VC++_No more than one window for an application.

Posted on 1998-08-07
3
166 Views
Last Modified: 2012-05-04
I would like to know how I can have only one window for an application even if I excute the application many times.
0
Comment
Question by:m3
3 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 1169705
Are you sure that is what you want?  

Do you maybe mean that if the application is started a second time, it should detect the first application and should terminate so that there really is just one running at a time and  therefore one window.  That is easy to do.  You cn do that with FindWindow()  I can elaborate if that is what you want.
0
 
LVL 23

Accepted Solution

by:
chensu earned 30 total points
ID: 1169706
0
 

Author Comment

by:m3
ID: 1169707
The first one doesn't work, I'll try the other ones later.
Thanks.

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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…
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

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