Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Pb with cocreateinstance(CLSID_DOMDocument40) >Thread Next - Re: Pb with cocreateinstance(CLSID_DOMDocument40) Re: Pb with cocreateinstance(CLSID_DOMDocument40)To: NULL Date: 12/2/2004 11:57:00 AM You are using msxml3.dll but your code are referring to class identifier CLSID_DOMDocument40 (which is found in msxml4.dll). To solve the problem, download MSXML 4.0 and change to use msxml4.dll instead. "Forest" <Forest@d...> wrote in message news:134FA515-2603-4915-A652-612F5FC32CAF@m...... > Hello, > > I want to verify my XML document with a XSD schema. To do this, I use the > msxml3 dll as following : > > CoInitialize(NULL); > IXMLDOMDocument2* pXMLDocument = NULL; > HRESULT hr = ::CoCreateInstance(CLSID_DOMDocument40, NULL, CLSCTX_SERVER, > IID_IXMLDOMDocument2, (LPVOID*) (&*pXMLDocument)); > > On some machines, thats works perfectly. But, on others machines, I have the > REGDB_E_CLASSNOTREG error whereas the msxml3 dll seems to be registered > correctly. > > Does anybody have an idea ? > I tried msxml3usa.msi found on the microsoft site. It doesn't better. > How can I verify the DLL is really registered ? > > Thanks for your help | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
