Solved

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

Posted on 1998-08-07
3
172 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
[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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
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 learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

740 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