locked
VB6 on Win7 64bit RRS feed

  • Question

  • Hi All.

    I have been running VB6 for a while on my Win 64bit system.  I have started to get errors when using certain components.

    I start a new project (also fails for old ones) and go to Components -> Controls

    Tick Microsoft Windows Common Controls 6.0 (SP6)

    Which is located as C:\windows\sysWOW64\mscomctl.ocx

    Click on Apply and get the below error.  I've downloaded the new OCX, tried an OCX from a different PC.  Registered it etc... still no joy.

    Any ideas? (Note 5.0 gets selected without error)

    ---------------------------
    Microsoft Visual Basic
    ---------------------------
    'C:\windows\SysWow64\MSCOMCTL.OCX' could not be loaded
    ---------------------------
    OK   Help   
    ---------------------------


    Thursday, September 11, 2014 2:19 PM

Answers

  • Fixed :-)

    Delete MSCOMCTL.* from SysWOW64

    Start VB6 – it fails to start.  Does an auto repair and works fine J

    • Marked as answer by The Stone Friday, September 12, 2014 11:47 AM
    Friday, September 12, 2014 11:47 AM

All replies

  • Hi

    In Windows itself, I would suggest to modify the registry key to fix this, remember to back up the registry before you modified it in the way below:

    http://support.microsoft.com/kb/322756/en-us

    To modify the registry key:

    1.Run Registry Editor (regedit at the cmd Windows)

    2.In the left-hand panel, navigate to key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility{BDD1F04B-858B-11D1-B16A-00C0F0283628}

    3.In the right-hand panel, double-click on “Compatibility Flags”, change the value from Hex 0x400 (Decimal 1024) to 0, then click OK.

    4.Launch the application that uses the "2.0" version of MSCOMCTL.OCX; it should run as designed.

    Meanwhile, since this is a VB project, I also suggest to post it at the VB forum:

    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral

    Regards

     


    Wade Liu
    TechNet Community Support


    • Edited by Wade__Liu Friday, September 12, 2014 10:31 AM
    Friday, September 12, 2014 10:30 AM
  • Hi  Yehia Abd El Azeem,

    Since you can log on the system successfully, it means the hard ware is physically working well, nothing wrong with the RAM or hard disk, the problem lies in the system itself, a bad or corrupted system file is responsible for this, to fix this, you can try the system file checker in the way listed below:

    http://support.microsoft.com/kb/929833/en-us

    Installing the anti-virus software from Microsoft to ensure that the computer is not virused by malware:

    http://windows.microsoft.com/en-us/windows/security-essentials-all-versions

    Besides, another situation as you mentioned, I suggest to check whether the computer is fully updated, because the keyboard may fail to work without a keyboard driver installed, you should check the Windows update to ensure that.

    As mentioned, the hard disk and RAM  should be running normally, I would suggest to use a new keyboard to check the result.

    Regards


    Wade Liu
    TechNet Community Support

    Friday, September 12, 2014 10:33 AM
  • Fixed :-)

    Delete MSCOMCTL.* from SysWOW64

    Start VB6 – it fails to start.  Does an auto repair and works fine J

    • Marked as answer by The Stone Friday, September 12, 2014 11:47 AM
    Friday, September 12, 2014 11:47 AM