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

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.
LVL 1
reidy_boyAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
SteHConnect With a Mentor Commented:
Have a look at
http://www.flounder.com/nomultiples.htm
its covering most things needed.
0
 
SteHCommented:
In the article you find that the check should be done in InitInstance of the CWinApp derived class.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.