Problems porting a program from one computer to another. MSXML version?

OKI

Usenet Archive
Joined
Feb 19, 2004
Messages
2
Reaction score
0
Hi.

I´ve made a XML parser using MSXML2.LIB in a computer. When i´ve tried to run it in another one like that:

HRESULT hr = CoCreateInstance(CLSID_DOMDocument, NULL,
CLSCTX_INPROC_SERVER, IID_IXMLDOMDocument, (void **)&(this->xmlDoc));

the result is:

hr = -2147221164 (Class not registered)

I think it could be a problem with MSXML versions in the two computers. In the first one I have the following libraries in Windows\System32, msxml.dll, msxml3.dll, msxml3a.dll, msxml3r.dll, msxmlr.dll. In the second one all I have is msxml.dll (different from the first one) and msxmlr.dll.

Both computers have installed Windows2000.

If this is the problem, how can I know which MSXML version do I have? I´ve tried some ASP sniffers but in the second computer I haven´t internet connection.

I'd appreciate some help from you.

Thanks in advance.
 

Martin SChukrazy

Usenet Archive
Joined
Feb 17, 2004
Messages
16
Reaction score
0
Check out and compare the prog Id's of the two different computers (for MSXML) in the registry. They should be different. In that case your code a) either has to handle this b) or throw up an error saying it requires the latest version of MSXML. The appropriate forum for this is in MSDEV and not here..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
548,208
Messages
3,104,798
Members
249,594
Latest member
henrywalsh

Latest Threads

Top