Solved

Multiple instances of a program

Posted on 1997-03-15
1
208 Views
Last Modified: 2010-04-04
How do i check if theres already a copy of my program running on the system ??
0
Comment
Question by:Daydream
1 Comment
 

Accepted Solution

by:
morwoodk earned 50 total points
ID: 1334766
You need to use the caption of your application to check for other instances of the same.  For this reason it is a good idea to come up with a fairly unique application caption.

To check for other instances of your application use the following:

anAppHandle := FindWindow( nil, 'Your application caption');

anAppHandle is of type HWND and will be nil if there are no other instances loaded.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

919 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

21 Experts available now in Live!

Get 1:1 Help Now