Link to home
Start Free TrialLog in
Avatar of amjedmsa
amjedmsa

asked on

one instance of application

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 .
Avatar of Member_2_1001466
Member_2_1001466

Read
http://www.flounder.com/nomultiples.htm
It contains most info necessary for that goal.
Avatar of amjedmsa

ASKER

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  ?
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
nice i think we have a deal
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.