Re: Connect to remote COM object and registering typelib



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


.



Relevant Pages

  • Re: Convert InProcServer to OutProc
    ... searching the web, however, I didn't save a reference to them. ... Use regasm to register your .dll and create a type library ... Manually add appropriate AppId registry entries ... > I created a COM Server .NET dll that works fine as an InProcServer. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: submit button dead after server migration
    ... Are you sure you have the same DLL on both machines? ... Sometimes when I rebuild I forget to copy the DLL to the server and it ... > new server and getting all my MySQL database connections set back up I ... When I test the code on my local machine in debug or release ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problems when publish a Document
    ... local machine and it fails when you run it on your Windows 2000 server, ... understand what you mean by SharePoint client? ... > i have a problem with an DLL made with VB6 when i use that in my machine ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Please help
    ... Unable to open the Server service. ... DLL files to display messages from a remote computer. ... The NVIDIA Driver Helper Service service hung on starting. ... have the necessary registry information or message DLL ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Win2k3 SP1 error: New transaction cannot enlist in the specifi
    ... What we came upon was the fact that Windows Server 2003 requires roles to ... Do you use SQL Username and password, or SSPI to logon to the database (if ... >> This dll supports transactions, but does not initiate transaction calls. ...
    (microsoft.public.windows.server.general)