On 7 Aug., 15:41, Boris Zbarsky <bzbar...@mit.edu> wrote:
> ra wrote:
> > But how do I get a plugin instance from a node?
>
> By doing what nsHTMLExternalObjSH::GetPluginInstance does....  It's
> ugly, and uses unfrozen interfaces, but that's the only way to do it at
> the moment.
>
> You could consider filing a bug to have this functionality exposed in a
> saner way.
>
> -Boris

Ok, I almost got it now. Didn't noticed I can QueryInterface a
nsIContent from a nsIDOMNode. At least I hope this is possible. I
still have no running code because new problems arise.

I now have to include "nsIContent.h" to my code somewhere. When I do
this I get a compile error: "mozilla/dist/include/string\nsTAString.h
(41) : fatal error C1189: #Error:  Cannot use internal string classes
without MOZILLA_INTERNAL_API defined. Use the frozen header
nsStringAPI.h instead."

Well, I don't know how to use nsStringAPI.h. Including it in a central
place (stdafx.h) doesn't help. Does this mean I have to modify the
gecko source (version 1.8.1) to get this running?

Trying to define MOZILLA_INTERNAL_API wasn't a solution either. This
brings some more errors:
"mozilla/dist/include/xpcom\nsHashtable.h(266) : error C2039:
'GetKeyType' : is not a meber of 'nsHashKey'"
"mozilla/dist/include/xpcom\nsHashtable.h(266) : error C2065:
'SupportsKey' : undeclared identifier"
This is because GetKeyType and SupportsKey are inside a "#ifdef
DEBUG".

Next try, defining DEBUG. Now it compiles but linking fails because of
unresolved symbols:
"void __cdecl AppendASCIItoUTF16(char const *,class nsAString_internal
&)" (?AppendASCIItoUTF16@@YAXPBDAAVnsAString_internal@@@Z)
"public: static void const * const
nsObsoleteAString::sCanonicalVTable" (?
scanonicalvta...@nsobsoleteastring@@2PBXB)
"public: __thiscall nsAString_internal::~nsAString_internal(void)" (??
1nsAString_internal@@q...@xz)"

Now I'm stuck again. Help! Please! :)

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

Reply via email to