Problem with MSXML2.DOMDocument26 in VB6 code in Windows7
Hi,
In my VB6 code i used statement as follows
Set xmldoc = New MSXML2.DOMDocument26
It is working fine in windows server 2003 but it is throwing an error in windows7 as "ActiveX component can't create object 429"
So, I used a statement as follows
Set xmldoc = New MSXML2.DOMDocument30
Now it is working fine in both windows7 and windows server 2003
Can u please some one explain what could be the region the statement with document26 is failing in windows7 while the statement with document30 is working
Please do needful...
Regards
Re: Problem with MSXML2.DOMDocument26 in VB6 code in Windows7
The simple answer..
There are several versions of DOM (Document Object Model) and several can exist in unison on one system..
So your Server 2003 has both 2.6 & 3.0, however your Windows 7 does not have 2.6, but has 3.0 ...
Re: Problem with MSXML2.DOMDocument26 in VB6 code in Windows7
Thats fine.
But can you please tell me how to get document2.6 in windows7
Regards
Re: Problem with MSXML2.DOMDocument26 in VB6 code in Windows7
will the problem solve if we register msxml.dll
Re: Problem with MSXML2.DOMDocument26 in VB6 code in Windows7
Thing is DOM is part of Web browsers, and AFIK Ver 3.0 is in IE 8, so its possible that you'll need to find a way to install an older version of IE to get 2.6 on Win 7..
Copying files over and self registering them may help, but no guarantee..
Re: Problem with MSXML2.DOMDocument26 in VB6 code in Windows7
I wouldn't install the document26 version on Windows 7, even if it is possible. Why? Well, it's old and discontinued with Vista onwards. You have to keep in mind with each new OS, newer versions of files come out. It is our job as programmers to be forward compatible in these cases, instead of backward compatible.
BTW, my VB 6 skills are a bit rusty, so if my advice doesn't help, blame it on my age :p