Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Check if application is running

Check if application is running

Scheduled Pinned Locked Moved C / C++ / MFC
questionannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mathias S
    wrote on last edited by
    #1

    How can I check if application X is running ? I’m writing an Update tool for my application and I need the program to wait until the application quits before continuing. I don’t think I can use FindWindow since the Title text of the application is not static. /Mathias

    R D 2 Replies Last reply
    0
    • M Mathias S

      How can I check if application X is running ? I’m writing an Update tool for my application and I need the program to wait until the application quits before continuing. I don’t think I can use FindWindow since the Title text of the application is not static. /Mathias

      R Offline
      R Offline
      Renjith Ramachandran
      wrote on last edited by
      #2

      is it ur own app? if so use Mutex I want to change Myself..Can u help me? :)

      1 Reply Last reply
      0
      • M Mathias S

        How can I check if application X is running ? I’m writing an Update tool for my application and I need the program to wait until the application quits before continuing. I don’t think I can use FindWindow since the Title text of the application is not static. /Mathias

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Mathias S wrote: I’m writing an Update tool for my application and I need the program to wait until the application quits before continuing. Does the Update tool start application X? If so, WaitForSingleObject() can be used. Mathias S wrote: I don’t think I can use FindWindow since the Title text of the application is not static. Do you know the class of the window? If so, FindWindow() can still be used. In any case, it's not a 100% reliable function in that it relies upon a static caption or class, and it can introduce a deadlock situation.


        "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups