Error C2011: "MSXML2 :: IXMLDOMImplementation": structure override

I am changing my C ++ project, which was previously in VC6 and is now migrating to VS 2008, to use MSXML 6 instead of the earlier MSXML 3. When the code was in VC6, we used MSXML3 by importing it

# import "msxml3.dll"

It has been replaced by

# import "msxml6.dll"

After that, when I compile the project, I get this and several other similar errors. Error C2011: "MSXML2 :: IXMLDOMImplementation": redefinition of type "structure"

The above error is in the msxml3.tlh file.

1) Why is msxml3 still in use?

2) I narrowed down the problem to MSXML.h, which somehow automatically joins my project. Why is this?

3) What version of MSXML is referenced in MSXML.h?

4) V++ ? , , ?

5) MSXML6 ++? #import, ?????

6) ?

.net . . V++ - .

+5
3

#import. , rename import ( rename_namespace). .

: MSDN

( - include import, )

MS, ;)

+2

MS docoumentation MSXML.

, .dll, , .thl .tli. , .

, .

, msxml3 .

msxml.h, CTRL + SHIFT + F msxml. < - .h, , , :

#include <msxml6.dll>

...

+1

msxml.h . , msxml.h.

0
source

All Articles