Sorry about the inclusion of any unrelated email. I have no clues how that happened.
As I mentioned in my email, I have my header files in place. Looks like some header with a "using" clause in it that is causing this problem.. I am beginning to believe it is probably one of our (non xerces) headers and I would probably have to eat my hat.... -Vinayak > -----Original Message----- > From: David N Bertoni/Cambridge/IBM > [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 25, 2003 12:10 PM > To: [EMAIL PROTECTED] > Subject: Re: help me get rid of some compile errors... > > > > > > > > I am wasting way too much time integrating my app with the > > xerces parser. To add to my woes, I am facing compiler different > > compiler errors for different projects that use the same xerces > > code... :-) Can someone help me fix these errors the easy way ? > > Was it really necessary to include an entire _unrelated_ email in your > post? > > DOMNode *n // it is a valid domnode. > > // the following statement fails. error is "2440: 'static_cast' : > > cannot convert from 'class xercesc_2_2::DOMNode *' to 'class > > xercesc_2_2::DOMElement *' Types pointed to are unrelated; > > conversion requires reinterpret_cast, C-style cast or function-style > > cast" > > > > DOMElement *de = static_cast<DOMElement *>(n); > > > > // this fails too, error is "C2027: use of undefined type > 'DOMElement'" > > DOMElement *de = reinterpret_cast<DOMElement *>(n); > > Well I think that would tell you what's wrong. Did you > include the header > file for DOMElement? > > Dave > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]