I would like to add a button to Firefox that upon clicking, will call
an "Interface Method" in a COM DLL I am writing (sorry for the
Microsoft jargon, I hate it too).
In Internet Explorer, the way to do that is this: First implement
IObjectWithSite on said COM object. Soon after creation, SetSite will
be called on it and given an IUnknown pointer. Query this pointer for
IServiceProvider, call QueryService(SID_SWebBrowserApp), and you will
get back IWebBrowser2 pointer referring to the browser instance where
the button was clicked.
But in Firefox I have no idea how to even begin to do that (if possible
at all). Any idea where to start from? Is there something equivalent to
IWebBrowser2 in Firefox? Or anything that upon clicking a custom button
will call a COM interface?
Thanks!
Victor
Thanks!
Victor
_______________________________________________
dev-extensions mailing list
dev-ext...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-extensions
Eric, thank you for your answer.
I can write in C/C++ (using the Win32 AIP) without any problem.
However, I have no clue where to get the information for writing a
*Firefox extension* in C/C++.
I found the following link, but it seems that it only referes
JavaScript or some other scripting language?
Where can I find the right documentation for how to write a C/C++
extension (I prefer C++)?
A tutorial would be even better.
Thanks,
Victor
http://www.borngeek.com/firefox/toolbar-tutorial/
There is a book, Creating XPCOM Components, available online, as well
as quite a few articles on the topic, including
http://www.iosart.com/firefox/xpcom/ and
http://developer.mozilla.org/en/docs/Creating_Custom_Firefox_Extensions_with_the_Mozilla_Build_System
Nickolay
Nickolay, thank you so much for your answer. Your answer looks like
exactly what I was looking for. Now I have a lot of learning to do...
Thanks again.
Victor