?
Solved

one instance of application

Posted on 2004-08-24
5
Medium Priority
?
197 Views
Last Modified: 2013-11-20
helo

how to make only one instance of my application running if the same application opens again it will be terminated automaticly with no errors or confermation messages or anything.
just like MSN messenger with no modification done to it .
0
Comment
Question by:amjedmsa
[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
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:SteH
ID: 11882851
Read
http://www.flounder.com/nomultiples.htm
It contains most info necessary for that goal.
0
 

Author Comment

by:amjedmsa
ID: 11883145
wow this is much harder to do than the one at MSDN
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q243/9/53.asp&NoWebContent=1

is there any other easier way that i can do this  ?
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 280 total points
ID: 11883171
0
 

Author Comment

by:amjedmsa
ID: 11883187
nice i think we have a deal
0
 
LVL 13

Expert Comment

by:SteH
ID: 11883194
Is it that much more difficult? The GUID for the message in that article should be used as name of the mutex in the MSDN approach. The article details possible pitfalls of easy solution. The article on MSDN seems to be somewhat updated to not take all problems. Try it out. If you find the MSDN apporach simpler and it works use it. Or read a bit the article on flounder and see whether J.M.Newcomer already knows about shortcommings.
0

Featured Post

Industry Leaders: 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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

762 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