Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

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.
0
reidy_boy
Asked:
reidy_boy
  • 2
1 Solution
 
SteHCommented:
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now