Easiest way to find previous instance of an application

Posted by Yogi Yang 007 on Stack Overflow See other posts from Stack Overflow or by Yogi Yang 007
Published on 2010-03-12T11:16:35Z Indexed on 2010/03/12 11:17 UTC
Read the original article Hit count: 197

Filed under:
|
|
|

I have rewritten a VB6 based application developed in Delphi, which should have only one instance running. How can I do this with minimum of code?

In VB6 we just have to use one single line of code >

If App.PrevInstance Then 'Take some action End If

On goggling I did find a solution but it is very length and we have to mess with .drp file.

I do not want to do that.

I want something simpler.

© Stack Overflow or respective owner

Related posts about delphi

Related posts about vb6