Problem with ActiveX dual interface.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with ActiveX dual interface.

jvpich
I am  trying to build a simple COM server which supports dual
interface dispatching. I implemented all the things I guess are
necessary. But when I instantiate (from within Dolphin 4 pro) the
subclass of AXDualImpl which implements the interface
and I #queryInterface: I  get a walkback in
AXDispatchImpAbstract>>#GetTypeInfo: itinfo lcid: lcid pptinfo:
pptinfo
in the method implementation there are two lines which read:

        pptinfo value: piTi bytes.
        piTi AddRef.

but piTi is not an ITypeInfo but an AXTypeInfoAnalyzer. I tried
replacing these lines by:

        pptinfo value: piTi piTypeInfo bytes.
        piTi piTypeInfo AddRef.

And it started working. But #piTypeInfo is a private selector of
AXTypeInfoAnalyzer. So, which is the correct way to get
it running?

Juan Vidal Pich


Reply | Threaded
Open this post in threaded view
|

Re: Problem with ActiveX dual interface.

Blair McGlashan
Juan

You wrote in message news:[hidden email]...
> I am  trying to build a simple COM server which supports dual
> interface dispatching. ... I  get a walkback in
> AXDispatchImpAbstract>>#GetTypeInfo: itinfo lcid: lcid pptinfo:
> pptinfo...

Thanks for the bug report.

>
> ...So, which is the correct way to get
> it running?

Use #asParameter. When sent to an AXTypeInfoAnalyzer it answers the
associated ITypeInfo.

Regards

Blair