From: - HAL9000 on 6 Jul 2007 16:34 The following works when run in Winxp but when transported to WinMe m_pDocument is null after CoCreateInstance. Thus, trapping on m_pDocument->load(). #include <msxml2.h> .... CComPtr <IXMLDOMDocument> m_pDocument; .... hr = m_pDocument.CoCreateInstance(CLSID_DOMDocument); .... VARIANT_BOOL loadResult; COleVariant fileName(m_ConfigFileNameWithPath); hr = m_pDocument->load(fileName, &loadResult); Any ideas on root problem and solution? Something to do with msxml2 not existing in WinMe maybe? Is so, what does exist? Thanks...
From: Ajay Kalra on 6 Jul 2007 21:50 It would appear from the code that WinMe machine doesnt have the relevant COM server installed. You will need to install it first. I have no idea if its even supported on that OS. Good luck. --- Ajay "- HAL9000" <gumpy(a)mail.org> wrote in message news:oa9t8357fh7esnf4hha81gio20qpgp0sjt(a)4ax.com... > The following works when run in Winxp but when transported to WinMe > m_pDocument is null after CoCreateInstance. Thus, trapping on > m_pDocument->load(). > > > #include <msxml2.h> > ... > CComPtr <IXMLDOMDocument> m_pDocument; > ... > hr = m_pDocument.CoCreateInstance(CLSID_DOMDocument); > ... > VARIANT_BOOL loadResult; > COleVariant fileName(m_ConfigFileNameWithPath); > hr = m_pDocument->load(fileName, &loadResult); > > > Any ideas on root problem and solution? Something to do with msxml2 > not existing in WinMe maybe? Is so, what does exist? > > Thanks... > >
From: - HAL9000 on 6 Jul 2007 23:17 On Fri, 6 Jul 2007 21:50:12 -0400, "Ajay Kalra" <ajaykalra(a)yahoo.com> wrote: >It would appear from the code that WinMe machine doesnt have the relevant >COM server installed. You will need to install it first. I have no idea if >its even supported on that OS. Good luck. > >--- >Ajay Thanks for the reply. Further info, CoCreateInstance hr = 80040154 = REGDB_E_CLASSNOTREG = Class not registered. File %SystemRoot%\System32\msxml2.dll does not exist and I'm thinking I need this. Although Msxml.dll does exist. Best I can tell, this will install version 2: http://support.microsoft.com/kb/823490 (reference) Also ran across this page which lists WinMe updates. http://www.hpcfactor.com/support/patching/winme/ >"- HAL9000" <gumpy(a)mail.org> wrote in message >news:oa9t8357fh7esnf4hha81gio20qpgp0sjt(a)4ax.com... >> The following works when run in Winxp but when transported to WinMe >> m_pDocument is null after CoCreateInstance. Thus, trapping on >> m_pDocument->load(). >> >> >> #include <msxml2.h> >> ... >> CComPtr <IXMLDOMDocument> m_pDocument; >> ... >> hr = m_pDocument.CoCreateInstance(CLSID_DOMDocument); >> ... >> VARIANT_BOOL loadResult; >> COleVariant fileName(m_ConfigFileNameWithPath); >> hr = m_pDocument->load(fileName, &loadResult); >> >> >> Any ideas on root problem and solution? Something to do with msxml2 >> not existing in WinMe maybe? Is so, what does exist? >> >> Thanks... >> >>
From: Giovanni Dicanio on 7 Jul 2007 04:46 "Ajay Kalra" <ajaykalra(a)yahoo.com> ha scritto nel messaggio news:2C1BF7B5-F372-4A6A-80F6-B821285B990E(a)microsoft.com... > It would appear from the code that WinMe machine doesnt have the relevant > COM server installed. I agree with Ajay. Moreover, if you are interested in XML parsing, you might consider also TinyXML: http://www.grinninglizard.com/tinyxml/ G
|
Pages: 1 Prev: using MXXMLWriter to pretty print xml Next: Memory leak with CAsyncSocket::Create |