Hi Jason,
You may want to try this before giving up:
DOM_Element thisAction = static_cast( nl.item(
actionNum ));
Regards,
Lenny
-Original Message-
From: Jason Jesso [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:20 PM
To: [EMAIL PROTECTED]
Subject: Re: compatibilty
I
.item( actionNum ) );
>
> Keyur
>
> - Original Message -
> From: "Jason Jesso" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, February 15, 2002 12:42 PM
> Subject: Re: compatibilty
>
> > I tried the const thing, but I get the same
Try:
DOM_Node node = static_cast( nl.item( actionNum ) );
Keyur
- Original Message -
From: "Jason Jesso" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 15, 2002 12:42 PM
Subject: Re: compatibilty
> I tried the const thing, but I get t
ectories to VC7 to allow both
compilers to work (so I now have a Projects/Win32/VC7 directory).
Dave Connet
> -Original Message-
> From: Jason Jesso [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 15, 2002 10:55 AM
> To: [EMAIL PROTECTED]
> Subject: Re: compatibilty
&g
That doesn't work either. I get the following errors when I do that:
"iMtxDOM.cpp", line 325.57: 1540-1280 (S) An rvalue of type "DOM_Node"
cannot be converted to "DOM_Element".
"iMtxDOM.cpp", line 325.57: 1540-0218 (I) The call does not match any
parameter list for "DOM_Element::DOM_Element".
"
atrix.com> cc: (bcc: David N
>Bertoni/Cambridge/IBM)
> Subject: Re: compatibilty
> 02/15/2002 09:44
> AM
> Please respond
>
Jesso"
cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: Re: compatibilty
02/15/
Try just casting to a (DOM_Element)
DOM_Element thisAction = (DOM_Element)nl.item(actionNum);
item() returns a DOM_Node, not a DOM_Node&.
Dave Connet
> -Original Message-
> From: Jason Jesso [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 15, 2002 9:01 AM
> To: [EMAIL PROTEC
In fact the error I get now is:
An rvalue of type "DOM_Node" cannot be converted to "const DOM_Element &".
Jason Jesso wrote:
> I tried the const thing, but I get the same error.
>
> When I wrote this piece of code I used a previous version of ibm xerces for C++ and
>it compiles
> fine.
>
> I
I tried the const thing, but I get the same error.
When I wrote this piece of code I used a previous version of ibm xerces for C++ and it
compiles
fine.
I am now using the new ibm xerces libraries, since there were memory leaks in the older
libraries.
Now I get this compile time error.
I am no
Do this instead:
DOM_Element thisAction = (const DOM_Element &) nl.item( actionNum );
Casting an rvalue to a non-const reference is illegal in C++, so perhaps
you've changed/upgraded your compiler?
Dave
11 matches
Mail list logo