Re: Using same interfaces for in-proc vs. out-proc
Drew <dam@dam.com> wrote:
"Igor Tandetnik" <itandetnik@mvps.org> wrote in message
news:u26XeARXKHA.2388@TK2MSFTNGP02.phx.gbl...
But doesn't the LIBID, the one provided to the IDispatchImpl<> have
to be unique to determine whether to invoke the EXE or the DLL
version of the server?
"I am not able rightly to apprehend the kind of confusion of ideas that =
could provoke such a question." - Charles Babbage.
Seriously, with all due respect, I can't imagine what kind of mental =
picture of COM architecture you have in your mind. Whatever it is, it's =
incorrect.
Naturally, the client must have already "invoked" (by which I guess you =
mean "created an instance of") the server (whether EXE or DLL) in order =
to obtain IDispatch pointer from it in the first place, before a single =
line in IDispatchImpl implementation is executed. The LIBID is only used =
to look up the type library in the registry (this type library may be =
bound as a resource to some DLL or EXE, or be packaged as a standalone =
TLB file).
--
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