From: Alex on
Hello everybody,
probably my previous post :

http://groups.google.ca/group/microsoft.public.vc.mfc/browse_frm/thread/f611e8fa2a26b366?hl=en

didnÂ’t catch an eye of the right person, so IÂ’ll ask it again. In
short - if the method, which IÂ’m calling using IDispatch->Invoke(..),
is suppose to return another IDispatch pointer, how must I initialize
DISPPARAMS (or maybe something else has to be done ) to get this
returned by the invoked method IDispatch ptr.

Thanks,
Alex
From: SvenC on
Hi Alex,

> probably my previous post :
>
> http://groups.google.ca/group/microsoft.public.vc.mfc/browse_frm/thread/f611e8fa2a26b366?hl=en
>
> didn�t catch an eye of the right person, so I�ll ask it again. In
> short - if the method, which I�m calling using IDispatch->Invoke(..),
> is suppose to return another IDispatch pointer, how must I initialize
> DISPPARAMS (or maybe something else has to be done ) to get this
> returned by the invoked method IDispatch ptr.

the [out,retval] property is the return value, so you'll find it in
varResult.
That also means you must only pass 3 parameters in DISPPARAMS.

--
SvenC

From: Alex on
Hello, Sven
I'm so happy you've answered this post. You were absolutely right.
Eventually I'll learn a lot from you.

Best regards,
Alex


On May 14, 11:12 am, "SvenC" <Sv...(a)nospam.nospam> wrote:
> Hi Alex,
>
> > probably my previous post :
>
> >http://groups.google.ca/group/microsoft.public.vc.mfc/browse_frm/thre...
>
> > didn’t catch an eye of the right person, so I’ll ask it again.  In
> > short - if the method, which IÂ’m calling using IDispatch->Invoke(..),
> > is suppose to return another IDispatch pointer, how must I initialize
> > DISPPARAMS (or maybe something else has to be done ) to get this
> > returned by the invoked method  IDispatch ptr.
>
> the [out,retval] property is the return value, so you'll find it in
> varResult.
> That also means you must only pass 3 parameters in DISPPARAMS.
>
> --
> SvenC