Discussion Locked

Using MSXML2 objects

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have an NT4 build. I have set the msxml3 references and the dll's are registered. However when I try to instantiate DOMDocument30 objects I get the "Can't Create ActiveX object" exception. NOTE: I HAVE SET THE REFERENCES. What am I missing?
Are there other dependencies ? (I have ie5).

1 reply

by etni

You don't say what's the code you are using to create a new instance. For MSXML3 the code will be something like this:

dim objDOM as MSXML2.DOMDocument30
set objDOM = new MSXML2.DOMDocument30
' or
set objDOM = CreateObject("MSXML2.DOMDocument30")

The DLL file does not have any dependencies, so as long as it is registered properly it should work. If it still does not work try unregistering and re-registering the file.

-Etni

This discussion is closed to new replies.