Hi!

I'm using a C++ glue layer with Mono to access the Gecko# DOM. Since
Gecko# is just a GtkMozEmbed wrapper, I'm passing its Gtk.Bin.Handle
pointer to my glue functions, and I've tested some of the
gtk_moz_embed C functions with the pointer and they work fine.

But the one I need, gtk_moz_embed_get_nsIWebBrowser, doesn't seem to
be returning anything...

For example,

char *HelloWorld(GtkMozEmbed *embed)
{
    nsCOMPtr<nsIWebBrowser> browser;
    gtk_moz_embed_get_nsIWebBrowser(embed, getter_AddRefs(browser));
    
    if (!browser) return "error!";
}

returns "error", while

char *HelloWorld(GtkMozEmbed *embed)
{
    return gtk_moz_embed_get_location(embed);   
} 

works absolutely fine.

Any idea why? Could it be my compiler options, included files etc?
Both functions build fine on Ubuntu using the Mozilla dev packages.

Thanks for your help,


Michael Hutchinson

_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to