Re: registration order of tlb, proxy/stub, exe

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





"Igor Tandetnik" wrote:

khalprin <khalprin@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
The interfaces I'm testing are mostly 'get property' types so you're
right, the do very little work. I can't seem to rectify the order of
registration with the idea that the proxy/stub being last makes it
more efficient.

See if you can find correlation with this. Look in the registry under

HKCR\Interface\{Your Interface IID}\ProxyStubClsid32

If the default value of this key is
{00020424-0000-0000-C000-000000000046}, you are using universal (aka
TLB-driven) marshalling (the TypeLib subkey gives the LIBID of the type
library to use). Otherwise, it's the CLSID of the object implemented by
proxy/stub DLL.
--
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




Those keys:

HKCR\Interface\{Your Interface IID}\ProxyStubClsid32
HKCR\Interface\{Your Interface IID}\ProxyStubClsid32\TypeLib

don't change no matter what order I use to register.

The key:
HKCR\Interface\{Your Interface IID}\ProxyStubClsid32
is always {00020424-0000-0000-C000-000000000046}

and
HKCR\Interface\{Your Interface IID}\ProxyStubClsid32\TypeLib
is always the CLSID of the library block of the idl in my server executable.

I refreshed and closed/re-opened regedit while checking to be sure I wasn't
looking at stale values...


.



Relevant Pages

  • Re: Problem marshalling interface pointer into local server
    ... It can be applied to the proxy/stub DLL as well. ... Mind you this is not the most efficient way of producing a DLL ... Now that would be correct - an Automation-compatible interface ... I had an issue where I have a in-proc server (server ...
    (microsoft.public.vc.atl)
  • Re: Problem marshalling interface pointer into local server
    ... I created a new ATL project for the common marshaller proxy/stub with the ... IDL file I posted previously then used the ATL generated PS project output ... interface TypeLib in the various COM projects' library blocks. ...
    (microsoft.public.vc.atl)
  • Re: Weird 0x80010105 error
    ... As for the proxy/stub DLL - simply rebuild and reregister it. ... In order to catch the crash, attach a debugger (or start in the ... > (client-side and server-side) components are running at the same computer. ... >>> interface I call a dedicated method, which will give me the interface. ...
    (microsoft.public.vc.atl)
  • Re: Problem marshalling interface pointer into local server
    ... Make a sepaarte proxy/stub DLL with B's marshaling ... I didn't register the proxy/stub for interface B. The local ... server only 'uses' the interface B, ... client of the local server, which is an in-proc dll, it also does not ...
    (microsoft.public.vc.atl)
  • Re: I have a COM object installed on my machine...
    ... depending on the type of interface. ... Dual interfaces are usually marshaled via type libraries, ... cannot be marshaled with a proxy/stub DLL. ... the proxy/stub DLL from its IDL file is the way to go. ...
    (microsoft.public.vc.atl)