Re: I have a COM object installed on my machine...
- From: "Brian Muth" <bmuth@xxxxxxxx>
- Date: Tue, 12 Jul 2005 08:28:44 -0700
"WTH" <spamsucks@xxxxxxxxx> wrote in message
news:e4DlOTnhFHA.708@xxxxxxxxxxxxxxxxxxxxxxx
> ...from 3rd party developers.
>
> This COM object is written to use the STA.
>
> I wanted to pass an interface pointer (IMyInterface* for example) to a
> worker thread, so I went to call CoMarshalInterThreadInterfaceInStream(
> IID_IMyInterface, ... ) and the HRESULT was "interface not registered",
this
> made me think that the COM object was missing proxy code or there was a
> registration issue, so I looked online for this.
>
> I asked the guys who build the COM object where the proxy/stub code was
and
> they said the build a separate DLL for that, and that they don't install
it
> when because nobody has ever used their COM object between two threads.
> Now, they let me look at their COM object's IDL file and in that IDL file
is
> only defined one interface (IMyOtherInterface for example) and they tell
me
> that the COM object class itself, of course, implements that interface and
> also inherits IMyInterface (which is not mentioned in the IDL for the COM
> object but is from an IDL project they have elsewhere.)
>
> Now, my concern is that when they give me the proxy/stub code, and I try
to
> get IMyInterface pointer to marshall, will the IID_IMyInterface be defined
> in the proxy/stub DLL?
I suppose it is defined insofar that if you call
IMyInterface::QueryInterface(IID_IMyInterface...) it knows what to do.
>
> They won't change the way they build the DLL(s), but they will change the
> way they deploy the COM object.
> What should I be telling them I need?
Well, do you want to install it manually using regsvr32? Or do you want it
deployed centrally using Group Policy or SMS? Perhaps I misunderstand what
you mean by "deployed". All I would want is the proxy-stub DLL so I can
install it manually.
>
> I presume that HKCR\Interface will have to have the GUID for IMyInterface
> somewhere, correct?
Yes. Registering the proxy-stub will do this.
Brian
.
- Follow-Ups:
- References:
- Prev by Date: Re: _com_error
- Next by Date: A strange COM problem
- Previous by thread: I have a COM object installed on my machine...
- Next by thread: Re: I have a COM object installed on my machine...
- Index(es):
Relevant Pages
|