Solved

How can I ensure only one instance of my application is running?

Posted on 2004-10-19
3
166 Views
Last Modified: 2013-11-20
As the title states.  Basically, I want to check in my main OnInitDialog method upon startup that my application is not already running, else terminate.
0
Comment
Question by:reidy_boy
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
SteH earned 125 total points
ID: 12348187
Have a look at
http://www.flounder.com/nomultiples.htm
its covering most things needed.
0
 
LVL 13

Expert Comment

by:SteH
ID: 12348211
In the article you find that the check should be done in InitInstance of the CWinApp derived class.
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 12349024
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iSeries FTP Exit Program 8 162
Define unique primary key 9 95
how to monitor remote shell execution on linux 9 106
twoTwo  challenge 35 112
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

713 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