Hi Paul,

Thks for the information.
It worked when we changed the code as follows:

IXMLDOMDocumentPtr pXMLDoc;
hr = pXMLDoc.CreateInstance("Msxml2.DOMDocument.4.0");

Regards,
Amit.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paul Grenyer
Sent: Tuesday, December 30, 2003 2:56 PM
To: [EMAIL PROTECTED]
Subject: Re: [msvc] CreateInstance of DOMDocument


On Tue, 2003-12-30 at 06:05, Amit Mayekar wrote:

Hi

> I am using MSXML4 and following are the lines of code,
>
> IXMLDOMDocumentPtr pXMLDoc;
> hr = pXMLDoc.CreateInstance(__uuidof(DOMDocument));
>
> here the CoCreateInstance of DOMDocument fails giving the HR value as
> "ClassFactory cannot supply requested class".
> Can any give me possible reason for this ?

<http://www.paulgrenyer.co.uk/articles/validate_xml_files_display_element_st
ruct.htm>

--
Regards
Paul

Paul Grenyer
Email: [EMAIL PROTECTED]
Web: http://www.paulgrenyer.co.uk

Have you met Aeryn: http://www.paulgrenyer.co.uk/aeryn/?


_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive.



Reply via email to