I have been trying out your great code samples for CSExeCOMServer for an out of process activex server.
I compiled the CSExeCOMServer project, registered the CSExeCOMServer.exe using regasm and I followed the sample in CSExeCOMClient.vbs which worked great.
My question is how to use VB script GetObject. I tried the following (a modification to your .vbs script) but got an ActiveX error 429 - could not create activex component.
' This works fine i.e. create instance of object.
SET obj = CreateObject("CSExeCOMServer.CSSimpleObject")
' Error 429 occurs here.
SET anotherobj = GetObject(,"CSExeCOMServer.CSSimpleObject")
' call the HelloWorld method that returns a string
MsgBox "The HelloWorld method returns " & anotherobj .HelloWorld
I have done some research on this but there does not seem to be much info for doing this apart from one approach which is to create a VB6 wrapper, which I have not yet tried (I need to get hold of VB6) but would not be as elegant as your CSExeCOMServer approach
if only I could use it with GetObject.
My end goal is to create a single instance of the activeX exe object started from a cmd prompt and the same object can be used in different vbscripts.
Any info you can provide would be great.