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 of application

Single instance of application

Scheduled Pinned Locked Moved C / C++ / MFC
questionsysadmin
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.
  • H Offline
    H Offline
    Hungry Developer
    wrote on last edited by
    #1

    Hi, Using synchronization object, I can restrict the number of instances of my application to one. How can I achieve the same, when the system is on network?

    J M S 3 Replies Last reply
    0
    • H Hungry Developer

      Hi, Using synchronization object, I can restrict the number of instances of my application to one. How can I achieve the same, when the system is on network?

      J Offline
      J Offline
      Jijo Raj
      wrote on last edited by
      #2

      What about broadcasting a custom UDP message over the network? If any of your application is running over somewhere in the network, sent back another reply. Regards, Jijo.

      _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

      1 Reply Last reply
      0
      • H Hungry Developer

        Hi, Using synchronization object, I can restrict the number of instances of my application to one. How can I achieve the same, when the system is on network?

        M Offline
        M Offline
        Malli_S
        wrote on last edited by
        #3

        What exactly do you mean by system is on network ?

        -Malli...! :rose:****

        modified on Friday, December 12, 2008 2:38 AM

        1 Reply Last reply
        0
        • H Hungry Developer

          Hi, Using synchronization object, I can restrict the number of instances of my application to one. How can I achieve the same, when the system is on network?

          S Offline
          S Offline
          Stuart Dootson
          wrote on last edited by
          #4

          Hmmm - is it possible that you want to achieve this so you can ensure there's only one person accessing a resource on the network somewhere? If it's a file, you could try locking the file appropriately...or you could do the job the safe and assurable way, and hide the resource behind a server, so the server is the only thing that can access it, giving you control again.

          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