Hi Niky,
Thanks for your help.
I am able to write a small program which creates an instance of
nsIWebBrowser.
As soon as I try to get an handle to a navigation object through
do_QueryInterface, I get an unresolved reference error.
My class has the following lines for "nsISupports"
NS_IMPL_ADDREF(<my class>)
NS_IMPL_RELEASE(<my class>)
How do I add an implementation for QueryInterface?
Thanks for your help.
Raghu
Niky Williams wrote:
Raghunath wrote:
Hi,
I was trying to get a simple sample code snippet that would get me
started for embedding.
Can someone help me regarding this..
Thanks
Raghu
Niky Williams wrote:
Raghunath wrote:
Hi,
I want to embed the browser engine (without UI) in an application.
Its only purpose would be to fetch the URL and return the page
contents.
Can this be achieved?
Thanks,
Raghu
Yup, when you embed your browser, just don't create a UI. Do a
search for embedding on http://www.Mozilla.org/developer and that
should get you started.
Niky Williams
Raghu,
Well, there is more to it than just a simple code snippet, you have 1 of
2 options here. You can implement the interfaces yourself or you can
use Adam Lock's ActiveX control. The ActiveX control is pretty straight
forward for just displaying a web page, but if think you will need
somemore robust stuff like having your code reacting to button clicks in
the HTML, then you need to implement the interfaces yourself. What OS
and environment will you be using? Either way, you will need to also
download and build the mozilla source on your system so you will have
the required files. Sounds more complicated than it is. If you are
using Windows, I can help you get started, let me know what you are
wanting to use.
Niky Williams
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding