Solved

one instance of application

Posted on 2004-08-24
5
190 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
  • 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 70 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
repeatEnd java challenge 42 83
Perl Awk Need Help 3 94
Macro to save highlighted rows as a separate file 5 38
has77  challenge 9 67
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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…

706 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

14 Experts available now in Live!

Get 1:1 Help Now