Re: Using same interfaces for in-proc vs. out-proc
- From: "Drew" <dam@xxxxxxx>
- Date: Fri, 6 Nov 2009 09:31:09 -0600
"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote in message
news:uqWu%23fmXKHA.4588@xxxxxxxxxxxxxxxxxxxxxxx
Drew <dam@xxxxxxx> wrote:
That's my point. The EXE and DLL would have different LIBIDs in their
typelib. One for the EXE one for the DLL.
Why? They describe the same interfaces with the same IIDs, right? Why do you
want different LIBIDs?
---------
So that they can both be registered at the same time. Otherwise, how do you
distinguish between a reference to the EXE and a reference to the DLL?
Suppose one VBA user wants to use the EXE andd one wants to use the DLL. How
do they reference them if their LIBIDs are the same?
---------
My concern is the interfaces
defined in the typelib and how they reference the LIBID. In this
scenario would I be able to have both EXE and DLL registered at the
same time?
Yes. But, again, you'll have a problem if the one that was registered last
is uninstalled first, because it'll remove marshalling support for your
interfaces from the registry.
-------------
That's my concern. Having unique LIBIDs isn't enough to support the idea
that's being proposed.
-------------
How would the non-unique IID interfaces resolve which
server they referred to?
IIDs do not refer to a server: after all, thousands of servers implement
IUnknown or IDispatch. IIDs (often) refer to a LIBID, with the type library
providing marshalling support. Now, you are attempting to tie a LIBID to a
server: your problems stem from that.
-------------
Maybe when I referred to server I should have said LIBID that referred to
the COM server. Am I mistaken that the LIBID *is* tied to the server? I mean
from a VBA client point of view, they need to add a reference to a server
that is looked up using the LIBID, right?
-------------
Thanks,
Drew
.
- Follow-Ups:
- Re: Using same interfaces for in-proc vs. out-proc
- From: Igor Tandetnik
- Re: Using same interfaces for in-proc vs. out-proc
- References:
- Using same interfaces for in-proc vs. out-proc
- From: Drew
- Re: Using same interfaces for in-proc vs. out-proc
- From: Igor Tandetnik
- Re: Using same interfaces for in-proc vs. out-proc
- From: Drew
- Re: Using same interfaces for in-proc vs. out-proc
- From: Igor Tandetnik
- Re: Using same interfaces for in-proc vs. out-proc
- From: Drew
- Re: Using same interfaces for in-proc vs. out-proc
- From: Igor Tandetnik
- Re: Using same interfaces for in-proc vs. out-proc
- From: Drew
- Re: Using same interfaces for in-proc vs. out-proc
- From: Igor Tandetnik
- Re: Using same interfaces for in-proc vs. out-proc
- From: Drew
- Re: Using same interfaces for in-proc vs. out-proc
- From: Igor Tandetnik
- Using same interfaces for in-proc vs. out-proc
- Prev by Date: Re: Using same interfaces for in-proc vs. out-proc
- Next by Date: Re: Using same interfaces for in-proc vs. out-proc
- Previous by thread: Re: Using same interfaces for in-proc vs. out-proc
- Next by thread: Re: Using same interfaces for in-proc vs. out-proc
- Index(es):
Relevant Pages
|