error C2065: 'DOMDocument40': undeclared identifier
#include "MsXml2.h" #import <msxml4.dll> MSXML2::IXMLDOMDocumentPtr pConfigXSDDoc; MSXML2::IXMLDOMDocumentPtr pDeviceXSDDoc; // load the XML file MSXML2::IXMLDOMDocument2Ptr pXMLDoc; HRESULT hr = pXMLDoc.CreateInstance(__uuidof(DOMDocument40));
After I change the below code from #include "MsXml2.h" #import <msxml4.dll> to #import <msxml4.dll> rename_namespace(_T("MSXML")) then the domdocument40 error was resolved . Below three errors still I am getting CLSID_XMLSchemaCache40 CLSID_DOMDocument40 IID_IXMLDOMDocument2 Can I hardcode the classids which are mentioned in the below link and use it directly in my code <a href="https://msdn.microsoft.com/en-us/library/ms754671(v=vs.85).aspx">MSXML 4.0 GUIDs and ProgIDs</a>[<a href="https://msdn.microsoft.com/en-us/library/ms754671(v=vs.85).aspx" target="_blank" title="New Window">^</a>]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)