Converting very old VC++ to VS2005 and MSXML
-
Thanks -- actually DID include the local dir to resolve a few other issues -- this one is the only one I have left outstanding at the moment (at least until THIS one clears and the compilation finds something else :wtf: ) I have tried the "./msxml.h" also, but I am still getting that error message (I even put in the entire path, same result).
gartnerj wrote:
I have tried the "./msxml.h" also, but I am still getting that error message (I even put in the entire path, same result).
Well, that's spooky. Have you changed ALL #includes of msxml.h? Try checking stdafx.h and rebuilding from scratch.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
gartnerj wrote:
I have tried the "./msxml.h" also, but I am still getting that error message (I even put in the entire path, same result).
Well, that's spooky. Have you changed ALL #includes of msxml.h? Try checking stdafx.h and rebuilding from scratch.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Yeah, really strange. There are only two references to #include "msxml.h" in the project: 1)a generated MSXML.cpp file 2)a DataParse.h (which is where a bunch of custom parsing code is defined). No other #include of msxml.h at all!!:confused:
Add or make sure the following is in your stdafx.h
#ifndef VC_EXTRALEAN #define VC_EXTRALEAN #endif
How to use VC_EXTRALEAN and WIN32_LEAN_AND_MEAN to enhance the build process in Visual C++[^] Let me know if this works. Best Wishes, -David Delaune -
Add or make sure the following is in your stdafx.h
#ifndef VC_EXTRALEAN #define VC_EXTRALEAN #endif
How to use VC_EXTRALEAN and WIN32_LEAN_AND_MEAN to enhance the build process in Visual C++[^] Let me know if this works. Best Wishes, -David DelauneThanks David, I had seen the WIN_LEAN_AND_MEAN setting and had tried that with no luck. I tried the VC_EXTRALEAN, and I still get the errors:
DataParse.cpp
e:\....\graphing\mpactgrafx activex control\msxml.h(977) :
error C2011: 'XMLDOMDocumentEvents' :
'struct' type redefinition
c:\program files\microsoft visual studio 8\vc\platformsdk\include\msxml.h(9495) :
see declaration of 'XMLDOMDocumentEvents'
MSXML.cpp
e:\....\graphing\mpactgrafx activex control\msxml.h(977) :
error C2011: 'XMLDOMDocumentEvents' :
'struct' type redefinition
c:\program files\microsoft visual studio 8\vc\platformsdk\include\msxml.h(9495) : see declaration of 'XMLDOMDocumentEvents'No joy yet.
-
Thanks David, I had seen the WIN_LEAN_AND_MEAN setting and had tried that with no luck. I tried the VC_EXTRALEAN, and I still get the errors:
DataParse.cpp
e:\....\graphing\mpactgrafx activex control\msxml.h(977) :
error C2011: 'XMLDOMDocumentEvents' :
'struct' type redefinition
c:\program files\microsoft visual studio 8\vc\platformsdk\include\msxml.h(9495) :
see declaration of 'XMLDOMDocumentEvents'
MSXML.cpp
e:\....\graphing\mpactgrafx activex control\msxml.h(977) :
error C2011: 'XMLDOMDocumentEvents' :
'struct' type redefinition
c:\program files\microsoft visual studio 8\vc\platformsdk\include\msxml.h(9495) : see declaration of 'XMLDOMDocumentEvents'No joy yet.
-
Thanks David, I had seen the WIN_LEAN_AND_MEAN setting and had tried that with no luck. I tried the VC_EXTRALEAN, and I still get the errors:
DataParse.cpp
e:\....\graphing\mpactgrafx activex control\msxml.h(977) :
error C2011: 'XMLDOMDocumentEvents' :
'struct' type redefinition
c:\program files\microsoft visual studio 8\vc\platformsdk\include\msxml.h(9495) :
see declaration of 'XMLDOMDocumentEvents'
MSXML.cpp
e:\....\graphing\mpactgrafx activex control\msxml.h(977) :
error C2011: 'XMLDOMDocumentEvents' :
'struct' type redefinition
c:\program files\microsoft visual studio 8\vc\platformsdk\include\msxml.h(9495) : see declaration of 'XMLDOMDocumentEvents'No joy yet.
-
:(( Ok, lets be patient and work through this. First thing you need to do is find out where msxml.h is being included. Do you have
#include <urlmon.h>
included anywhere? Best Wishes, -David DelauneWindows.h #includes Ole2.h which #includes ObjBase.h which #includes urlmon.h No way round getting the SDKs msxml.h, as far as I can tell.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Thanks David, I had seen the WIN_LEAN_AND_MEAN setting and had tried that with no luck. I tried the VC_EXTRALEAN, and I still get the errors:
DataParse.cpp
e:\....\graphing\mpactgrafx activex control\msxml.h(977) :
error C2011: 'XMLDOMDocumentEvents' :
'struct' type redefinition
c:\program files\microsoft visual studio 8\vc\platformsdk\include\msxml.h(9495) :
see declaration of 'XMLDOMDocumentEvents'
MSXML.cpp
e:\....\graphing\mpactgrafx activex control\msxml.h(977) :
error C2011: 'XMLDOMDocumentEvents' :
'struct' type redefinition
c:\program files\microsoft visual studio 8\vc\platformsdk\include\msxml.h(9495) : see declaration of 'XMLDOMDocumentEvents'No joy yet.
A suggestion. Stuff your local msxml.h inside a namespace when #including it:
namespace Old
{
#include "msxml.h"
}and then explicitly specify the namespace when using the structures out of your local file - e.g.
Old::XMLDOMDocumentEvents events;
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
:(( Ok, lets be patient and work through this. First thing you need to do is find out where msxml.h is being included. Do you have
#include <urlmon.h>
included anywhere? Best Wishes, -David Delaune -
A suggestion. Stuff your local msxml.h inside a namespace when #including it:
namespace Old
{
#include "msxml.h"
}and then explicitly specify the namespace when using the structures out of your local file - e.g.
Old::XMLDOMDocumentEvents events;
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
A suggestion. Stuff your local msxml.h inside a namespace when #including it:
namespace Old
{
#include "msxml.h"
}and then explicitly specify the namespace when using the structures out of your local file - e.g.
Old::XMLDOMDocumentEvents events;
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p