[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
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
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.

Leeor.
Reply all
Reply to author
Forward
0 new messages