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 .
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 .
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 ?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
http://www.flounder.com/nomultiples.htm
It contains most info necessary for that goal.