save and load in XML
-
may i know how to save and load a .xml by using c++ in MFC? can send me any link? thanks
You may use
MSXML
. Samples here [^]. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
may i know how to save and load a .xml by using c++ in MFC? can send me any link? thanks
Yeah see this link ;) Read and Write application parameters in XML[^].
-
may i know how to save and load a .xml by using c++ in MFC? can send me any link? thanks
This may help Don't forget to write this line :) #import <msxml.dll> // The XML DOM
try
{
CString sQueryXML = "<start><sometag></sometag></end>";
CString sFileName;
sFileName.Format("%s","C:\\MyXml.xml");
MSXML::IXMLDOMDocumentPtr pDoc(__uuidof(MSXML::DOMDocument));
pDoc->async = false;
pDoc->loadXML((LPCSTR) sQueryXML);
pDoc->save((LPCSTR) sFileName);
}
catch(_com_error e)
{
ASSERT(false);
} -
may i know how to save and load a .xml by using c++ in MFC? can send me any link? thanks
serach tinyXML in google ..
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>