CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Location
    UK, London
    Posts
    155

    Detecting Another App's shutdown ????



    Hi there

    I have an app (dde client) which gets information from another app which is a ddeserver (which i do not have source code for)

    every 15 minutes or so

    How can my app tell the moment the server app has shut down?

    so it can shutdown too ?


    Regards

    Bryce Burrows

  2. #2
    Join Date
    Apr 1999
    Location
    UK, London
    Posts
    155

    Detecting Another App's shutdown ????



    Hi there

    I have an app (dde client) which gets information from another app which is a ddeserver (which i do not have source code for)

    every 15 minutes or so

    How can my app tell the moment the server app has shut down?

    so it can shutdown too ?


    Regards

    Bryce Burrows

  3. #3
    Join Date
    Apr 1999
    Posts
    7

    Re: Detecting Another App's shutdown ????



    Hi;

    i have 2 suggestions

    1. Use CreateProcess API to start the DDE server app from you DDE client app.

    you will know the process (server program) terminal from this API.


    2. Use FindWindo API function to get the dde server program in certain

    interval by SetTimer function.


    HTH

    bye

  4. #4
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: Detecting Another App's shutdown ????



    1) ShellExecuteEx

    2) WaitForSingleObject


    Sally

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured