Re: Connect to remote COM object and registering typelib
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Wed, 12 Dec 2007 18:38:46 -0500
sawer <sawer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
So; if want to use a server (for example a dll) in remote computer
without knowing nothing about object, will we want server itself?
You mean, do you need to have the DLL present on your local machine? No,
you don't have to. Like I said, if you somehow know the CLSID of the
object and the name of the server it resides on, you don't need any kind
of registration on the local machine - no registry entries are
necessary.
AS said, we must register it, so we will use regsvr32 with dll; So
dll must be in our local computer.
There are other ways to write to registry. The developer could have
provided a .reg file, or an installation program that just writes
necessary registry entries. There's nothing magical about regsvr32.
Why do we make remote connection, if we get the server itself? Isn't
this absurd?
The remote server could have access to resources you don't have locally.
E.g. some special hardware is attached to that computer but not to
yours, and the whole purpose of the COM object is to let you control
that hardware. Or the other computer is just much more powerful than
yours, and you use the COM object to get that computer to perform some
heavy number crunching for you.
Is there any pratical ways that programmer use to register servers
without getting server itself?
Lots.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Connect to remote COM object and registering typelib
- From: sawer
- Re: Connect to remote COM object and registering typelib
- From: Igor Tandetnik
- Connect to remote COM object and registering typelib
- Prev by Date: Re: Connect to remote COM object and registering typelib
- Next by Date: Re: CoCreateInstance, QueryInterface error
- Previous by thread: Re: Connect to remote COM object and registering typelib
- Next by thread: Re: CoCreateInstance, QueryInterface error
- Index(es):
Relevant Pages
|