I have a COM object installed on my machine...
- From: "WTH" <spamsucks@xxxxxxxxx>
- Date: Mon, 11 Jul 2005 20:01:06 -0400
....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?
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?
I presume that HKCR\Interface will have to have the GUID for IMyInterface
somewhere, correct? If not defined in the COM object's IDL, will it be
packaged up in the proxy as it appears to be in the COM object's DLL (I can
get the interface off of the COM object just fine, but I can't marshall it)?
WTH
.
- Follow-Ups:
- Re: I have a COM object installed on my machine...
- From: Brian Muth
- Re: I have a COM object installed on my machine...
- Prev by Date: Known CImage problem
- Next by Date: Re: COM returning error message to ASP
- Previous by thread: Known CImage problem
- Next by thread: Re: I have a COM object installed on my machine...
- Index(es):
Relevant Pages
|