D3: Determining if App is already running (no HPrevInst)
Posted on 1998-03-22
I have a D1 app that I'm migrating to Win32 via Delphi 3. In this app, I used the HPrevInst property of TApplication to detect that I already have the application running. When I moved the code to Delphi 3, I've found that HPrevInst nolonger exists?!??!
So, the question is this:
How to I determine that my D3 app is already running?
Note: I want to know if my program is running, not just any application.
Note#2: Simple is better. I'm looking to write a function to replace the HPrevInst property so I don't have to patch a lot of code.
(sometimes I just wanna slap Borland for this kinda crap)