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