Solved

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

Posted on 2003-11-20
2
437 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 125 total points
ID: 9790844
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
ID: 9791057
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

623 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