Is another app running?

Hello all,

I have a console application written in C++ which will be called inside another app written in delphi. I want to make sure that my executable will run only if the other application is running. Any ideas how I can do this?

Thanks again

Comments

  • : Hello all,
    :
    : I have a console application written in C++ which will be called inside another app written in delphi. I want to make sure that my executable will run only if the other application is running. Any ideas how I can do this?
    :
    : Thanks again
    :

    have the delphi program create a semephore, then the console program check the existance of the semephore. It's almost the identical procedure used to insure there is only one instance of a program running. see CreateSemephore() at www.msdn.microsoft.com or other Win32 API documentation.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion