Emmanuel Thevenot Beaufort

I'm cross-posting my question to this forum (original here : http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1173728&SiteID=1) as it seems that ATL is also mentionned here. Sorry, if it's a bad practice !

I'm currently implementing an event sink with IDispEventSimpleImpl. I have the same problems than the ones described in KB288724 (http://support.microsoft.com/kb/288724/en-us), I'm receiving arguments in reverse order. What is confusing me is that this rather "old" knowledge base article applied only to Visual C++ 6.0.

By looking into atlcom.h from VC++ 2005, it seems that IDispEventSimpleImpl::InvokeFromFuncInfo is the one described in the workaround section of KB288724, but I'm not sure with IDispEventImpl::GetFuncInfoFromID as its design has changed.

Is it possible that this issue has not been solved with Visual C++ 2005 (2002 2003 )

Is it possible that the problem comes from the server (which has not been built with VC++ 2005 ATL)

Has anyone observed such behavior

Thanks in advance.



Re: Visual C++ Language ATL IDispEventSimpleImpl reverse order bug still present in VC++ 2005 ????

Brian Kramer

Instead of cross posting and getting duplicate effort, i would post in the best forum/newsgroup.  I'll delete the other thread.

In addition, I think the best newsgroup is the COM/OLE one found here: http://msdn.microsoft.com/newsgroups/topic.aspx url=/MSDN-FILES/028/201/005/topic.xml (because people familiar with this issue are most likely to be found there).

It's really odd that this bug has persisted.  I would open a bug on this with the link to the KB article here: https://connect.microsoft.com/VisualStudio

 

 

 





Re: Visual C++ Language ATL IDispEventSimpleImpl reverse order bug still present in VC++ 2005 ????

Emmanuel Thevenot Beaufort

Thank you very much for your answer and sorry for the cross post. I should have read more carefully the scope of this forum.

By the way, I can not find yet the connect page.

Bye





Re: Visual C++ Language ATL IDispEventSimpleImpl reverse order bug still present in VC++ 2005 ????

Brian Kramer

I fixed the link to the connect site. Try again.



Re: Visual C++ Language ATL IDispEventSimpleImpl reverse order bug still present in VC++ 2005 ????

Emmanuel Thevenot Beaufort

Just to let you know that I've tried to access an Excel 2003 application and
listen to events fired from it (as described in KB288724) all with Visual
2005, and....it works well. The parameters are passed in right order, as they
should be. So I don't understand why my application is receiving parameters
in reverse order for all events with more than one parameter.
Even if I do not have access to the COM server source code, I highly doubt
that implementation be wrong for all event firing.......

Anyway, I think that I'm not going to post any bug into connect site.
Thanks for your support.