Link to home
Start Free TrialLog in
Avatar of XWL
XWL

asked on

How to implement a Singleton console application in VC6.0/Win2K?

Hi there,

I am looking for a way to develop a "singleton console Application" with VC 6.0/Windows2000. It means that only one console application is allowed to run in the machine. When the user attempt to run the application, if there already is an application running (however, is in inactive state), the existing one will be activated instead of creating a new one.

Could anyone here give me an idea or show me a sample about it?

Thank you in advance,

XWL  
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany 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
Avatar of XWL
XWL

ASKER

It is great solution to my question! Thank you very much.

By the way, do you have any idea about restoring iconic console application to activated?

XWL