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

single instance

Scheduled Pinned Locked Moved C / C++ / MFC
5 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.
  • S Offline
    S Offline
    slah
    wrote on last edited by
    #1

    i am using winmain in my application and i want to restrict that only one instance of the application should run at one time. is there way to restrict it.

    M R 2 Replies Last reply
    0
    • S slah

      i am using winmain in my application and i want to restrict that only one instance of the application should run at one time. is there way to restrict it.

      M Offline
      M Offline
      Mike Upton
      wrote on last edited by
      #2

      Look at this^ article.


      "We are the knights who say Ni" (The Knights Who Say Ni)

      1 Reply Last reply
      0
      • S slah

        i am using winmain in my application and i want to restrict that only one instance of the application should run at one time. is there way to restrict it.

        R Offline
        R Offline
        Raphael Kindt
        wrote on last edited by
        #3

        Perhaps this article can help you ... Clic here A single instance is a "Singleton":) Hello World!!! :) from Raphaël

        M 1 Reply Last reply
        0
        • R Raphael Kindt

          Perhaps this article can help you ... Clic here A single instance is a "Singleton":) Hello World!!! :) from Raphaël

          M Offline
          M Offline
          Mike Upton
          wrote on last edited by
          #4

          Sorry, but a Singleton is to do with having a single instance of a particular class in an application (and is a very useful thing ;) ), but the question was asking about only ever having a single instance of an application running at a time.


          "We are the knights who say Ni" (The Knights Who Say Ni)

          R 1 Reply Last reply
          0
          • M Mike Upton

            Sorry, but a Singleton is to do with having a single instance of a particular class in an application (and is a very useful thing ;) ), but the question was asking about only ever having a single instance of an application running at a time.


            "We are the knights who say Ni" (The Knights Who Say Ni)

            R Offline
            R Offline
            Raphael Kindt
            wrote on last edited by
            #5

            Of course... Sorry... :-O :) Hello World!!! :) from Raphaël

            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