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. DCOM over COM

DCOM over COM

Scheduled Pinned Locked Moved COM
combusinessquestion
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.
  • A Offline
    A Offline
    Adrian Bacaianu
    wrote on last edited by
    #1

    I have a COM+ component. Until now i have only clients hosted into the same computer like my business component. Now is needed to have clients on other computers, over the net, who must access data from my COM+ component. The way is to deploy a DCOM component and make calls from clients to that DCOM. But i dont want to copy the code from my COM+ component into the new DCOM component. I know is possible to make a com to be like an exe DCOM, but i dont know how... Know somebody how ? Adrian Bacaianu

    L 1 Reply Last reply
    0
    • A Adrian Bacaianu

      I have a COM+ component. Until now i have only clients hosted into the same computer like my business component. Now is needed to have clients on other computers, over the net, who must access data from my COM+ component. The way is to deploy a DCOM component and make calls from clients to that DCOM. But i dont want to copy the code from my COM+ component into the new DCOM component. I know is possible to make a com to be like an exe DCOM, but i dont know how... Know somebody how ? Adrian Bacaianu

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Since this is a COM+ component, you can instantiate it remotely too. You don't have to write a new DCOM server - thank God! (How would you provide all COM+ services in the DCOM server after all? rewrite them?) Just call (from VB/VBScript) Set obj = CreateObject(ProgID, Remote server name) and you' ll get a remote instance of your component. For C++ code, CoCreateInstanceEx will do the trick. For DCOM to work, you need ports 135 & 1024-65535 open between your machines. Hope I helped.

      A 1 Reply Last reply
      0
      • L Lost User

        Since this is a COM+ component, you can instantiate it remotely too. You don't have to write a new DCOM server - thank God! (How would you provide all COM+ services in the DCOM server after all? rewrite them?) Just call (from VB/VBScript) Set obj = CreateObject(ProgID, Remote server name) and you' ll get a remote instance of your component. For C++ code, CoCreateInstanceEx will do the trick. For DCOM to work, you need ports 135 & 1024-65535 open between your machines. Hope I helped.

        A Offline
        A Offline
        Adrian Bacaianu
        wrote on last edited by
        #3

        Yes, was working, many thanks! The speed isnt so good but that it is... Adrian Bacaianu

        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