XiX
December 16th, 2002, 05:18 AM
Hello,
I make a setup project (C++) in .NET - OS WINNT.
Project works in debug _and_ in install mode on my PC.
Then I export this to another PC (OS WIN2000) to test the project, .NET framework installed.
There it fails on pointer_to_XMLDOMDoc->CreateInstance(); with an error:
ReadXMLDoc : Failed to instantiate an XML DOM document - Code = -2147221164
The code reads as follows:
IXMLDOMDocument2Ptr pXMLDom;
HRESULT hRes;
CoInitialize (NULL);
hRes = pXMLDom.CreateInstance(__uuidof(DOMDocument40));
if (FAILED(hRes)) {
sprintf(szErr, "ReadXMLDoc : Failed to instantiate an XML DOM document - Code = %d\n", hRes);
WriteXMLLog(szErr);
}
Strangely enough, it used to work on this PC, and now that it doesn't work anymore, I tested it on other PC's with WIN2000.
No problem there.
A search on the web gave me something about a bad install of a COM server.
Has anyone any clue on this? It's pretty urgent, since this has to be shown to a customer tomorrow :-)
Tnx a million!
I make a setup project (C++) in .NET - OS WINNT.
Project works in debug _and_ in install mode on my PC.
Then I export this to another PC (OS WIN2000) to test the project, .NET framework installed.
There it fails on pointer_to_XMLDOMDoc->CreateInstance(); with an error:
ReadXMLDoc : Failed to instantiate an XML DOM document - Code = -2147221164
The code reads as follows:
IXMLDOMDocument2Ptr pXMLDom;
HRESULT hRes;
CoInitialize (NULL);
hRes = pXMLDom.CreateInstance(__uuidof(DOMDocument40));
if (FAILED(hRes)) {
sprintf(szErr, "ReadXMLDoc : Failed to instantiate an XML DOM document - Code = %d\n", hRes);
WriteXMLLog(szErr);
}
Strangely enough, it used to work on this PC, and now that it doesn't work anymore, I tested it on other PC's with WIN2000.
No problem there.
A search on the web gave me something about a bad install of a COM server.
Has anyone any clue on this? It's pretty urgent, since this has to be shown to a customer tomorrow :-)
Tnx a million!