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. Automation Problem with ROT (Running Object Table)

Automation Problem with ROT (Running Object Table)

Scheduled Pinned Locked Moved COM
toolshelpc++javascript
1 Posts 1 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
    Alois Kraus
    wrote on last edited by
    #1

    Hello, I have an ATL COM Server with one dual interface. I can instantiate the interface via Javascript, VBScript, no problem. If one instance of the interface exists, it registers into the ROT (Running Object Table). So far I could not figure out if I am doing the registration wrong or my Javascript knowledge is too small to get my hands on the already running interface via the ROT in JScript oder VBScript. Var server; server = WScript.GetObject("","COMTest.Application"); It always instantiates a new interface leading to two ROT entries! The only method I know is: Var server; server = WScript.GetObject(,"COMTest.Application"); But this gives syntax error, but may work in Visual Basic (not script). Which always useses the existing instance of the interface. Any suggestions ? Yours, Alois Kraus

    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