Solved

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

Posted on 2004-10-19
3
157 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 85
Expand to include initial dialog with two choices. 9 59
lucky13 challenge 11 112
zeroMAx challenge 20 76
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

758 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

20 Experts available now in Live!

Get 1:1 Help Now