Solved

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

Posted on 2003-11-20
2
384 Views
Last Modified: 2013-11-20
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  
0
Comment
Question by:XWL
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 125 total points
Comment Utility
Check out http://support.microsoft.com/default.aspx?scid=kb;en-us;243953 ("HOWTO: Limit 32-bit Applications to One Instance Using C++")
0
 

Author Comment

by:XWL
Comment Utility
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
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Rewrite URL With Encoded Characters 6 64
List out all word 7 220
How to know only "File created" with EventLog 3 29
withoutTen challenge 14 88
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now