L
LirenZhao
I use two application in my software(a.exe / b.exe)
I need only one Instance of two application , who can help me?
I need only one Instance of two application , who can help me?
Lebesgue said:If I understand your question right, you want to be able to run only one
instance of any of two given applications at once. I also assume you are
the
author of both applications and can modify the source. Using Mutex is the
possible solution to accomplish this.
Both applications should try to grab Mutex aj start, and if it is already
given to another running instance, close themselves.
Refer to
http://msdn.microsoft.com/library/d...tml/frlrfsystemthreadingmutexmemberstopic.asp
for details.