Solved

one instance of application

Posted on 2004-08-24
5
192 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
set up trigger (or something) to rename files (starting with ATL) in a linux directory 6 53
if loop in java 3 139
sum28 challenge 31 111
JQuery serialize and unserialize 8 77
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

813 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

18 Experts available now in Live!

Get 1:1 Help Now