|
Prev: Reading ACCDB (Access 2007) files from MFC
Next: How can i set the style of a CTreeCtrl within a CTreeView ?
From: Alex on 14 May 2008 11:00 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 14 May 2008 11:12 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 14 May 2008 12:14
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 |