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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. COM
  4. Remote COM Access

Remote COM Access

Scheduled Pinned Locked Moved COM
helpcomsysadminquestion
5 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.
  • M Offline
    M Offline
    Malli_S
    wrote on last edited by
    #1

    Can some one help... I'm trying to acces a remote COM from local machine. I've a in-proc COM server (DLL), and want to acces it remotely. I was getting an error, when I tried with CoCreateInstanceEx(), i.e. "Class Not Registerd" from remote machine. so, I've exported (Registerd) it using 'Component Manager Snapp-in'. Right now I'm able to get the class access(because Class constructor gets called on remote machine), but it fails to get Interface pointer from class. And Interfaces implemented by class is also not shown in the snapp-in under 'Interfaces' Tag. Am I laggin somewhere? Is there any other way to do so? Please reply for the same. Thanks for anykind of help...... !! -Malli......!

    S 1 Reply Last reply
    0
    • M Malli_S

      Can some one help... I'm trying to acces a remote COM from local machine. I've a in-proc COM server (DLL), and want to acces it remotely. I was getting an error, when I tried with CoCreateInstanceEx(), i.e. "Class Not Registerd" from remote machine. so, I've exported (Registerd) it using 'Component Manager Snapp-in'. Right now I'm able to get the class access(because Class constructor gets called on remote machine), but it fails to get Interface pointer from class. And Interfaces implemented by class is also not shown in the snapp-in under 'Interfaces' Tag. Am I laggin somewhere? Is there any other way to do so? Please reply for the same. Thanks for anykind of help...... !! -Malli......!

      S Offline
      S Offline
      Siva Sankar Koyi
      wrote on last edited by
      #2

      Could you please try by registring the Proxy/Stub stuff on both machines... Thanks & Regars, Siva

      M 1 Reply Last reply
      0
      • S Siva Sankar Koyi

        Could you please try by registring the Proxy/Stub stuff on both machines... Thanks & Regars, Siva

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

        Hi ! Thanks for answering, we did the same. we created proxy/stub dll and regeistered on both the machines. I would like to add one more query. I build 3 COM Servers(as a service, exe, and dll). we tested all the three for their performance. when we fire number of requests from remote machins(approximatly 100 requests, 10 requests per process, like such there are 10 process makin requests), every type of server behaved differently. Exe type COM server took almost 1 min 40 sec. Service type COM Server took almost 1 min 42 sec(appro same as exe server). But DLL type COM server took only 16 Sec. How this has happend. Can you explain the working of all these remote servers.... Is the object shared by the clients? - Malli... !

        S 1 Reply Last reply
        0
        • M Malli_S

          Hi ! Thanks for answering, we did the same. we created proxy/stub dll and regeistered on both the machines. I would like to add one more query. I build 3 COM Servers(as a service, exe, and dll). we tested all the three for their performance. when we fire number of requests from remote machins(approximatly 100 requests, 10 requests per process, like such there are 10 process makin requests), every type of server behaved differently. Exe type COM server took almost 1 min 40 sec. Service type COM Server took almost 1 min 42 sec(appro same as exe server). But DLL type COM server took only 16 Sec. How this has happend. Can you explain the working of all these remote servers.... Is the object shared by the clients? - Malli... !

          S Offline
          S Offline
          Siva Sankar Koyi
          wrote on last edited by
          #4

          Need bit clarification.. How did you access the DLL from Remote machine, Did you run as a Surrogate process in Remote server ?? or you registered(copied) the source DLL to client machine.. Thanks, Siva Sankar

          M 1 Reply Last reply
          0
          • S Siva Sankar Koyi

            Need bit clarification.. How did you access the DLL from Remote machine, Did you run as a Surrogate process in Remote server ?? or you registered(copied) the source DLL to client machine.. Thanks, Siva Sankar

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

            Hello Siva ! Actully I've registerd the proxy/stub dll. And using MMC-Component Services, I put that COM dll into COM Applications. this would make your COM dll to be used from remote machin. (this inturn make use of DLLHOST.exe as a surrogate). This is what the scenario.... -Malli...!

            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