How to deal with Activex IDispatch

69 views
Skip to first unread message

goesmaster

unread,
Jan 9, 2012, 9:17:01 PM1/9/12
to ff-activex-host
I have an activex cotrol, and it has some interface with prama which
type is IDispatch*, the interface add some other com object into the
activex control, like HRESULT Add(IDispatch* lpDisp); So if i want to
change ff-activex-host to add interface like that, i think the main
problem is change NPAPI object to IDispatch*, but i have no idea where
to begin.
Thank you!

eagleonhill

unread,
Jan 10, 2012, 12:42:01 AM1/10/12
to ff-activex-host
I have a modification which can wrap NPAPI object to IDispatch*. It
supports dual interface, but because I pass command by name, you can't
use IE-only method such as attachEvent unless you define attachEvent
with your objects.

You can find my modification on code.google.com/p/np-activex/, binary
file under path chrome/*.dll. However, because my project focused on
auto-loading in browsers, some HTML usage is different, and I haven't
documented it.

If you're using Chrome, you can download the corresponding plugin
(ActiveX for Chrome) from Chrome webstore, which supports auto-
loading.

Leeor Aharon

unread,
Jan 17, 2012, 11:01:48 AM1/17/12
to ff-acti...@googlegroups.com
You basically need to add a way to tell the plugin to add additional controls to the main one (should be done from the object element), once you have that, you will probably need to change the scriptable interface to be able to traverse several objects.

Leeor.


--
You received this message because you are subscribed to the Google Groups "ff-activex-host" group.
To post to this group, send email to ff-acti...@googlegroups.com.
To unsubscribe from this group, send email to ff-activex-ho...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ff-activex-host?hl=en.


Reply all
Reply to author
Forward
0 new messages