RE: compatibilty

2002-02-15 Thread Lenny Hoffman
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

Re: compatibilty

2002-02-15 Thread Jason Jesso
.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

Re: compatibilty

2002-02-15 Thread Keyur Dalal
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

RE: compatibilty

2002-02-15 Thread Dave Connet
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

Re: compatibilty

2002-02-15 Thread Jason Jesso
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". "

Re: compatibilty

2002-02-15 Thread Jason Jesso
atrix.com> cc: (bcc: David N >Bertoni/Cambridge/IBM) > Subject: Re: compatibilty > 02/15/2002 09:44 > AM > Please respond >

Re: compatibilty

2002-02-15 Thread David N Bertoni/CAM/Lotus
Jesso" cc: (bcc: David N Bertoni/Cambridge/IBM) Subject: Re: compatibilty 02/15/

RE: compatibilty

2002-02-15 Thread Dave Connet
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

Re: compatibilty

2002-02-15 Thread Jason Jesso
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

Re: compatibilty

2002-02-15 Thread Jason Jesso
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

Re: compatibilty

2002-02-15 Thread David N Bertoni/CAM/Lotus
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