CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2012
    Posts
    3

    Exclamation 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

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    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 ...
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  3. #3
    Join Date
    Oct 2012
    Posts
    3

    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

  4. #4
    Join Date
    Oct 2012
    Posts
    3

    Re: Problem with MSXML2.DOMDocument26 in VB6 code in Windows7

    will the problem solve if we register msxml.dll

  5. #5
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    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..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  6. #6
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured