Atlast after doing so many rnd's the issues are resolved.
I checked with modifying #import statement with mxxml.dll, msxml2.dll, msxml3.dll, msxml4.dll dll's and namespace with MSXML and MSXML2.
1. you can use the msxml with MSXML namespace declaration like:
using namespace MSXML;
this will work in VC++ 7.1 only if use the namespace name at each place where you are using the XML varaible declarations etc. like:
void DisplayXmlDoc(MSXML::IXMLDOMNodePtr pRootNode);
void DisplayChild(MSXML::IXMLDOMNodePtr pChildNode);
even you should use the namespace name with NODE_TEXT macro like:
Now it works fine.
Thanks! It is really nice article, that helped me today.
and now it is working with VC++ 7.1 also.
I check it by using MSXML2 instead of MSXML but it doesn't work.
It is compiling well and working perfectly fine in VC++ 6.0 but it's not working in VC++ 7.1.
If remove the code line "using namespace MSXML" it compiles.
But i am facing other error when i am using XDOM functions like :
"m_pXmlDomDocument.load() function does not take 1 arguments".
but in function-tool-tip it's showing only 1 parameter.
Pls. update the article...
I cannot build it and the error is
XMLDOMFromVCDlg.cpp(230) : error C2872: 'NODE_TEXT' : ambiguous symbol
how can I do?
Posted by yachli
on 11/01/2006 12:31am
then modify it like this
using namespace MSXML2;
and replace all MSXMl:: to MSXML2::
releaseminsize\msxml3.tli(49) : error C2872: 'DOMNodeType' : ambiguous symbol
same error as my other codes.what should i do?
This article is excellent. It compiles and runs with no problem on Visual C++ version 6.0. With Version 7.1 (part of Visual Studio .NET 2003), there are several "ambiguous symbol" errors when compiling -- perhaps because some of these symbols are now defined by the compiler or included SDK.
It would be great if the included code was updated for VC++ 7.1.
Need to use namespace
Posted by Tom Archer
on 05/03/2005 11:24am
I recently needed to use some of this code for the first time in a very long time and this person's comments fixed the compiler errors you're getting (as a result of the Platform SDK):
kute hindu i read your web page you creat a good sight but keep one thing in mind that you never ever can compitation with me even in your seven JANIMS because i am your father
and keep in mind my son.