On 3 Jun., 16:05, Boris Zbarsky <bzbar...@mit.edu> wrote:
> rappel101...@googlemail.com wrote:
> > I'm trying to embed gecko in a MFC-Application with VisualStudio 6.0
> > as compiler. I'm using gecko-sdk-win32-msvc-1.8.0.4 because this seems
> > to be linkable with VisualStudio 6.0. Newer sdk versions 1.9.0.x gave
> > me linker errors so I'm using now sdk version 1.8.0.4.
>
> And running against what gecko version?

I'm using the xulrunner 1.8.0.4 dlls for the 1.8.0.4 sdk. But I don't
link it as described here: 
https://developer.mozilla.org/En/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK
because the sdk I downloaded (http://releases.mozilla.org/pub/
mozilla.org/xulrunner/releases/1.8.0.4/sdk/gecko-sdk-win32-
msvc-1.8.0.4.zip) does not contain embedstring.lib. So I link against
embed_base_s.lib, xpcomglue_s.lib, xpcom.lib. Could this cause the
problem?

> > LoadURI always gives me the return value 0x805e000a
> > (NS_ERROR_CONTENT_BLOCKED) even if i load some simple html files. It
> > seems, every content is blocked. How do I unblock content? Or is there
> > something completely wrong with my code?
>
> The relevant code in nsDocShell.cpp is this:
>
> 7662     rv = NS_CheckContentLoadPolicy(contentType,
> 7663                                    aURI,
> 7664                                    loadingPrincipal,
> 7665                                    context,
> 7666                                    EmptyCString(), //mime guess
> 7667                                    nsnull,         //extra
> 7668                                    &shouldLoad);
> 7669
> 7670     if (NS_FAILED(rv) || NS_CP_REJECTED(shouldLoad)) {
> 7671         if (NS_SUCCEEDED(rv) && shouldLoad ==
> nsIContentPolicy::REJECT_TYPE) {
> 7672             return NS_ERROR_CONTENT_BLOCKED_SHOW_ALT;
> 7673         }
> 7674
> 7675         return NS_ERROR_CONTENT_BLOCKED;
> 7676     }
>
> (in nsDocShell::InternalLoad).  If you have debugging symbols, you might
> want to step into that and see what's going on.  I would suspect that rv
> is ending up as an error code here or something...

I don't have debugging symbols. To get them I probably have to build
the sdk by myself. Is there any documentation about building the sdk?
Wich version of the mozilla source should I use? Unfortunately I have
to use VisualStudio 6.0 and I read somewhere the 1.9.xx mozilla source
does not support  VisualStudio 6.0 any more.

regards,
Rainer
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to