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

O

OKI

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.
 
M

Martin SChukrazy

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
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top