Solved

Multiple instances of a program

Posted on 1997-03-15
1
202 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 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

19 Experts available now in Live!

Get 1:1 Help Now