Try this.
MSXML2::IXMLDOMDocument2Ptr spDoc;
spDoc.CreateInstance(__uuidof(MSXML2:OMDocument40));
CComVariant varPath(L"D:\\example.xml");
if(VARIANT_FALSE == spDoc->load(varPath))
{
ATLTRACE(_T("Load Document Failed!\n"));
}
qingqi song
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: How to read XML from C++Threaded View
|
Click Here to Expand Forum to Full Width |