Click to See Complete Forum and Search --> : Automation


haoj
May 7th, 1999, 12:04 PM
I created an automation server using VC++6.0(NT4.0). The Server's ProgID is "testserver.document". I use VB6.0 code as client to test server. When VB CreateObject("testserver.document") is used, it will create the object, but if I start the server and use VB GetObject(, "testserver.document") function to get a reference of server object, it will always fail.
Does anyone know what is going on?

Thanks

anand99
May 14th, 1999, 08:37 AM
The problem is you are not registering your object with the ROT. Use RegisterActiveObject. Your VB automation controller is not seeing your object.