Discussion:
Getobject
(too old to reply)
Chris
2003-08-12 11:10:13 UTC
Permalink
Hi

I am able to get a reference to a running dll using GetObject(,
"Hello.World") on the local machine but I need to get a reference to a
running dll on a server machine.
Please help.

Thanks
Chris
Dan Harwood
2003-08-20 23:51:47 UTC
Permalink
Chris,

"GetObject" is good for getting references to objects that are running
locally.

If you want to get a reference to a "running" object on a remote
computer, you need to use "CreateObject" with the optional server
parameter.

Personally I use "CreateObject" in both cases.

There can be issues with CreateObject references to a server, based on
how the class is defined (single or multiuse) or whether your DCOM or
COM+ is configured properly (ie. rights usually need to be defined
properly) for that class.

Regards,
Dan

Loading...