hi, total newbie question but i'm having trouble declaring a
nsIDOMCSSStyleDeclaration in C++.  in my code, i do:

     nsCOMPtr<nsIDOMCSSStyleDeclaration> cssStyle;

when i compile this, i get:

     [exec] ../../../../dist/include/xpcom/nsCOMPtr.h: In destructor
`void 
     [exec]    nsCOMPtr<T>::nsCOMPtr() [with T =
nsIDOMCSSStyleDeclaration]':
     [exec] jni/dom/org_mozilla_jrex_dom_JRexNodeImpl.cpp:1612:
instantiated from here
     [exec] ../../../../dist/include/xpcom/nsCOMPtr.h:507: invalid
static_cast from type `
     [exec]    nsIDOMCSSStyleDeclaration*' to type `nsISupports*'
     [exec] ../../../../dist/include/xpcom/nsCOMPtr.h:509: invalid use
of undefined type `
     [exec]    struct nsIDOMCSSStyleDeclaration'
     [exec] ../../../../dist/include/dom/domstubs.h:123: forward
declaration of `struct 
     [exec]    nsIDOMCSSStyleDeclaration'
     [exec] gmake[2]: *** [jni/dom/org_mozilla_jrex_dom_JRexNodeImpl.o]
Error 1

line 1612 is the declaration i gave above.  what am i doing wrong?
thank you very much.

-- 
Xiaolei Li        |       [EMAIL PROTECTED]       |        www.xiaolei.org
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to