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. How to Create Single Process in C++

How to Create Single Process in C++

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiotutorialquestion
3 Posts 2 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.
  • T Offline
    T Offline
    Thong LeTrung
    wrote on last edited by
    #1

    Hi All, when I build visual studio to create exe file .Then I run exe file ,It will have a process . and I continue to run exe file again . Therefore i will have two process for exe file . How to Create Single Process in C++ ? I think we can check process currently if process exist we exit new process. I try to use singleton but i can not create single process. Do you have any way ? Thanks Thong LT

    R 1 Reply Last reply
    0
    • T Thong LeTrung

      Hi All, when I build visual studio to create exe file .Then I run exe file ,It will have a process . and I continue to run exe file again . Therefore i will have two process for exe file . How to Create Single Process in C++ ? I think we can check process currently if process exist we exit new process. I try to use singleton but i can not create single process. Do you have any way ? Thanks Thong LT

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      Take a look at this: Avoiding Multiple Instances of an Application[^]

      "Real men drive manual transmission" - Rajesh.

      T 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        Take a look at this: Avoiding Multiple Instances of an Application[^]

        "Real men drive manual transmission" - Rajesh.

        T Offline
        T Offline
        Thong LeTrung
        wrote on last edited by
        #3

        Thank you a lot Thong LT

        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