[ff-activex-host] what if the event source does not implement ITypeInfo::GetIDsOfNames
77 views
Skip to first unread message
laowu
unread,
Feb 12, 2012, 9:36:45 PM2/12/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ff-activex-host
I am trying to get ff-activex-host to work with an ActiveX component.
The COM event part failed because Sink->m_spEventSinkTypeInfo-
>GetIDsOfNames() (in CAxHost::AddEventHandler()) returns E_NOTIMPL.
Apparently, the ActiveX component did not implement GetIDsOfNames() in
the ITypeInfo for the class info.
I wonder what else can be done to recover from this. I notice
GetNames() did get implemented, and I temporarily use GetNames() to
get names of all DISPIDs of the event methods and compare them to the
event name to be connected. This is a terrible hack though.
Looking forward to any comments and ideas.
-laowu
Leeor Aharon
unread,
Feb 24, 2012, 4:35:16 AM2/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ff-acti...@googlegroups.com
As long as it works ;-)
I'm not an expert on COM so I can't really offer a lot here. I was under the impression that it's something that will reliably be there.
Would you like to send a patch of the fix? I'll review it and might implement it - as is, or with some modifications.