how to include XMLDOM in a EVC++ project??? help please

17/05/2004 - 19:12 por Iker Landajuela | Informe spam
HI, I'm trying to create a project to manage xml files, my source code is:
#include <msxml.h>

IXMLDOMDocument *iXMLDoc;
HRESULT hr;
hr = CoCreateInstance(CLSID_DOMDocument,
NULL,
CLSCTX_INPROC_SERVER,
IID_IXMLDOMDocument,(LPVOID*)&iXMLDoc);

I get this error:
A specified class is not registered in the registration database. Also can
indicate that the type of server you requested in the CLSCTX enumeration is
not registered or the values for the server types in the registry are
corrupt.

Can someone help me, I'm desesperated.
Thanks
 

Leer las respuestas

#1 Doug Forster
17/05/2004 - 22:51 | Informe spam
Hi Iker,

Your code looks correct to me, presuming you have called CoInitializeEx
somewhere else. What platform ? Are you sure MSXML is supplied with your
platform ?

Cheers

Doug Forster

"Iker Landajuela" wrote in message
news:
HI, I'm trying to create a project to manage xml files, my source code is:
#include <msxml.h>

IXMLDOMDocument *iXMLDoc;
HRESULT hr;
hr = CoCreateInstance(CLSID_DOMDocument,
NULL,
CLSCTX_INPROC_SERVER,
IID_IXMLDOMDocument,(LPVOID*)&iXMLDoc);

I get this error:
A specified class is not registered in the registration database. Also can
indicate that the type of server you requested in the CLSCTX enumeration


is
not registered or the values for the server types in the registry are
corrupt.

Can someone help me, I'm desesperated.
Thanks


Preguntas similares