hi,

I have to say that mozilla guys have done class implementation in a good way. When you need to use a new class, 99% of the time the needed header is class_name.h ! so you have to look for nsIWebBrowserStream.h.

You can obtain your nsIWebBrowserStream by do_QueryInterface() the nsIWebBrowser you use.

Take a look into the file embedding/browser/gtk/src/EmbedPrivate.cpp and look at OpenStream(), AppendToStream() and CloseStream() to get a sample
implementing what you need.

Olivier.

Karim SAIDI wrote:
Thank you Olivier,
 but how can I create and use a nsIWebBrowserStream ? I have embed a Mozilla
GRE version 1.8.1_0000000000, and I don't wich file I have to include and
just can't find any sample implementing a nsIWebBrowserStream...

Can someone help me with this ?


"Olivier Danes" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
Hi,

Try with a nsIWebBrowserStream, I use the GTK wrapper they have a
gtk_moz_embed_render_data() that do the job with a nsIWebBrowserStream.

Olivier

Karim SAIDI wrote:
Hi all,
    I have sucessfully embed a gecko engine in my mfc app and now I am
trying to render a html string provided by the user...
How can I do this ?

Thank you,
 KS.




_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to