Groups | Blog | Home
all groups > visual studio .net general > january 2006 >

visual studio .net general : msxml.h includ


Fergal Moran
1/27/2006 2:55:13 PM
Hello Guys

I have an STL application with no MFC written in VS.Net 2005 - it uses
the winsock libraries therefore I must include winsock.h/winsock2.h.

The problem this also forces msxml.h to be included through
winsock.h
windows.h
ole2.h
objbase.h
urlmon.h
msxml.h

this causes me problems as my application is already using the xerces
xml library and there are conflicing definitions such as

error C2371: 'DOMDocument' : redefinition; different basic types
d:\program files\microsoft platform sdk\include\msxml.h 9594

Is there a way to include winsock.h without having msxml.h included?

Regards

Fergal Moran
1/30/2006 12:00:00 AM
For anyone interested the solution is to define WIN32_LEAN_AND_MEAN

AddThis Social Bookmark Button