J
JJ
I have a small application that when launched I want it to
prevent another instance of itself being launched. I
tried singleton design, but it only limits the creation of
one instance of an object within an application. I want to
prevent a user from launching the application, then while
it is running launching it again. When they try to launch
the exe again, I only want the existing process to be
given focus instead of launching a whole new process. I
have the app checking for more than 1 process running, but
it still brings up a console window momentarily. Thanks
in advance. . .
prevent another instance of itself being launched. I
tried singleton design, but it only limits the creation of
one instance of an object within an application. I want to
prevent a user from launching the application, then while
it is running launching it again. When they try to launch
the exe again, I only want the existing process to be
given focus instead of launching a whole new process. I
have the app checking for more than 1 process running, but
it still brings up a console window momentarily. Thanks
in advance. . .