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. Single instance application

Single instance application

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
4 Posts 4 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.
  • A Offline
    A Offline
    Aryan S
    wrote on last edited by
    #1

    I am working with an MFC application. I want, user should be able to invoke only one process for the application. If it's already running in a system, then user should not be able to invoke another instance of the same exe. How can I achive that?

    P G A 3 Replies Last reply
    0
    • A Aryan S

      I am working with an MFC application. I want, user should be able to invoke only one process for the application. If it's already running in a system, then user should not be able to invoke another instance of the same exe. How can I achive that?

      P Offline
      P Offline
      Programm3r
      wrote on last edited by
      #2

      Hi, This article will help you. Single Instance[^] Any questions about it, ask me :) I'm the editor. Regards,


      The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :)Programm3r My Blog: ^_^

      1 Reply Last reply
      0
      • A Aryan S

        I am working with an MFC application. I want, user should be able to invoke only one process for the application. If it's already running in a system, then user should not be able to invoke another instance of the same exe. How can I achive that?

        G Offline
        G Offline
        GuyM
        wrote on last edited by
        #3

        This should help ... http://www.flounder.com/nomultiples.htm[^]

        1 Reply Last reply
        0
        • A Aryan S

          I am working with an MFC application. I want, user should be able to invoke only one process for the application. If it's already running in a system, then user should not be able to invoke another instance of the same exe. How can I achive that?

          A Offline
          A Offline
          Arman S
          wrote on last edited by
          #4

          Also several methods you can find here[^]

          -- ===== Arman

          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