Re: Connect to remote COM object and registering typelib

Tech-Archive recommends: Speed Up your PC by fixing your registry



sawer <sawer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
While late binding , If we have nothing (no need) about COM object in
remote server. How could CLSIDFromProgId work?

The server still has to be registered locally. As you noted, you need
ProgId to CLSID mapping. You also need to know which machine on the
network the server is residing on.

Now, if you somehow know this information from some source other than
the registry, you can use CoCreateInstanceEx to create an object that is
not in any way registered on the local machine.

Late binding just frees you from the need to compile against the exact
signatures of the interface methods. You still need to know the CLSID to
create the object, of course.

2-)Why must we register type library?

For late binding (calls through IDispatch only), you don't have to.

In What conditions do COM searches registry for type library?

When you call methods on an interface that is registered to use
universal (aka TLB-driven) marshalling. Normally, dual interfaces and
interfaces marked [oleautomation] are set up this way.
--
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: COM Interop - Localserver32 registry entries?
    ... > keys are necessary to be in the registry and pointing to what objects to ... > I have a DLL written in C# that I want to be the server. ... > localserver in the registry and gets the interface of the one already ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to disable registering secondary interfce in 2003 DNS
    ... In DNS MMC right click on the server, ... Have you restarted the DNS service since editing the registry? ... updates for a specific interface, ...
    (microsoft.public.windows.server.dns)
  • Re: COM Interop - Localserver32 registry entries?
    ... keys are necessary to be in the registry and pointing to what objects to get ... I have a DLL written in C# that I want to be the server. ... localserver in the registry and gets the interface of the one already ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: TSM network entry being pulled into DNS entry
    ... go ahead and do the registry changes on the main domain controller. ... >> How can we rectify that DNS does not pull the TSM network card. ... > they are a DNS server and/or a RAS server, ... > default to the internal interface. ...
    (microsoft.public.windows.server.dns)
  • RE: issues authentication w/2003 server AND SP1, IIS 6, FPSE 2002
    ... Server 2003 with Service Pack 1. ... In Registry Editor, locate and then click the following registry key: ... > following article number to view the article in the Microsoft Knowledge Base: ...
    (microsoft.public.frontpage.extensions.windowsnt)