Hello Tinny!

Thanks for your answer, that is the solution! IMHO the best way (at least
for me) is to change the MSXML.H. You have to comment out the following
lines:

#ifdef __cplusplus
typedef class DOMDocument DOMDocument;
#else
typedef struct DOMDocument DOMDocument;
#endif // __cplusplus

Of course that you won't be able to use MS XML but usually you use Xerces
instead ;)

Oliver

----- Original Message -----
From: "Tinny Ng" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Oliver Kurowski"
<[EMAIL PROTECTED]>
Sent: Thursday, January 09, 2003 11:52 PM
Subject: Re: Using latest nightly build?


> Oliver,
>
> I think I encountered something like this before....
>
> I think the Msxml.h has typedef its own DOMDocument, and thus lead to this
> error.   Try qualifier the use of DOMDocument in your application e.g.
>
>     XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * fDoc;
>
> and see if it helps.
>
> Tinny
> ----- Original Message -----
> From: "Oliver Kurowski" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 09, 2003 3:06 PM
> Subject: Re: Using latest nightly build?
>
>
> > Hi Dave!
> >
> > I examined my code and I found no forward declaration. Just my own class
> > declaration in the header.
> > I want to note that my code worked fine with Xerces 2.1.0
> >
> > Oliver
> >
> > ----- Original Message -----
> > From: "David N Bertoni/Cambridge/IBM" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, January 09, 2003 9:01 PM
> > Subject: Re: Using latest nightly build?
> >
> >
> > >
> > >
> > >
> > >
> > > Hi Oliver,
> > >
> > > Check your code to make sure you have no forward declarations of your
> own,
> > > for example:
> > >
> > >    class DOMDocument;
> > >
> > > This will be a problem when you hoist everything in the Xerces
> namespace,
> > > because this forward declaration is not in the Xerces namespace.
> > >
> > > Dave
> > >
> > >
> > >
> > >
> > >                       "Oliver
> > >                       Kurowski"                To:
> > <[EMAIL PROTECTED]>
> > >                       <oliver.kurowski         cc:      (bcc: David N
> > Bertoni/Cambridge/IBM)
> > >                       @gmx.de>                 Subject: Using latest
> > nightly build?
> > >
> > >                       01/09/2003 11:50
> > >                       AM
> > >                       Please respond
> > >                       to xerces-c-dev
> > >
> > >
> > >
> > >
> > > Hello everybody!
> > >
> > > I loaded the latest nightly build to test the new pretty printer.
> > >
> > > But I was not able to compile my project due to the error that
> DOMElement
> > > and several other things aren't declared.
> > >
> > > I learned that namespace support (the C++ namespaces!!) were added
> > recently
> > > and so I included in my header after including all DOM header files
> > > "XERCES_CPP_NAMESPACE_USE". But now the compiler tells me that
> DOMDocument
> > > (which was used right after DOMElement) was declared twice.
> > >
> > > Any suggestions to get this to work? I'm using MS Visual Studio .NET.
> > >
> > > Thanks for the help
> > >
> > > Oliver Kurowski
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to