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. COM
  4. HELP NEEDED - DCOM Server in C#?

HELP NEEDED - DCOM Server in C#?

Scheduled Pinned Locked Moved COM
helpcsharpsysadminquestion
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.
  • R Offline
    R Offline
    r6yamaha
    wrote on last edited by
    #1

    I have a problem that I have not been able to resolve. I have a C# exe where I have exposed some interfaces. My problem is that every call to createobject creates a new instance of the application. What I need is one running application from which a client can connect to. Scenario 1: Application is launched from command line. User connects to existing running application using createobject (this does not work...it creates another instance) Scenario 2: Application is not running User run createobject to connect to launch application. App launches (however if another program does a createobject it creates yet another instance). I have not found anything in my searches that have helped. Someone please shed some light on this! Thanks, Loren

    L 1 Reply Last reply
    0
    • R r6yamaha

      I have a problem that I have not been able to resolve. I have a C# exe where I have exposed some interfaces. My problem is that every call to createobject creates a new instance of the application. What I need is one running application from which a client can connect to. Scenario 1: Application is launched from command line. User connects to existing running application using createobject (this does not work...it creates another instance) Scenario 2: Application is not running User run createobject to connect to launch application. App launches (however if another program does a createobject it creates yet another instance). I have not found anything in my searches that have helped. Someone please shed some light on this! Thanks, Loren

      L Offline
      L Offline
      lafleon
      wrote on last edited by
      #2

      Hello, Just check 'DECLARE_CLASSFACTORY_SINGLETON(...)' macro on MSDN. Regards

      R 1 Reply Last reply
      0
      • L lafleon

        Hello, Just check 'DECLARE_CLASSFACTORY_SINGLETON(...)' macro on MSDN. Regards

        R Offline
        R Offline
        r6yamaha
        wrote on last edited by
        #3

        Thanks...is there an equivalent C# implementation? My EXE is a C# program. Loren

        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