VB6 on Win 7 - problem on rebuilt system


  1. Posts : 24
    Windows 7 Professional 64-bit
       #1

    VB6 on Win 7 - problem on rebuilt system


    I've used VB6 for some very simple domestic programs for many years, it does the job. For 4 years or so my Win 7 Pro PC has run VB6 ok.

    I upgraded the PC to an SSD 2 weeks and have clean installed Win 7 Pro and reinstalled all the apps.

    VB6 installs and runs but...

    One program has an UpDown control and when VB6 loads the project I get errors on load and a log entry saying "Class MSComCtl2.UpDown of control UpDown was not a loaded control class"

    The project file for the program includes these 3 lines

    Object={F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0; COMDLG32.OCX
    Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0; MSCOMCTL.OCX
    Object={86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCT2.OCX

    Searching the Registry there are entries for them with those CLSIDs, and all 3 .OCX files are in SysWow64.

    Despite this error the VB project loads and runs - albeit with the UpDown control.

    It would seem therefore that I've not done something this time installing VB6 that I must have done earlier.

    I have Ccleaner & Belarc listings from the pre-rebuild system and there's no sign of any components other than VB6 itself being installed, no MSDN, no MDAC.

    Any thoughts on how to get these ActiveX controls enabled?
      My Computer


  2. Posts : 3,487
    Win 7 Pro x64/Win 10 Pro x64 dual boot
       #2

    Is the up/down control part of a VB6 add on package? For instance, Visual Studio often has add on extensions that offer free controls, but they have to be downloaded and installed.

    Does VB6 have extensions like that? If so, it might be missing.

    One other thing... Are you missing a DLL or resource file of any kind for this project?
      My Computer


  3. Posts : 24
    Windows 7 Professional 64-bit
    Thread Starter
       #3

    Thaks for that.

    UpDown is one of the controls included in MSCOMCTL2.OCX.

    I can only assume that somehow I've failed to properly set it up.

    I've also just realised that the first error messages when loading the VB project is Object library not registered. There are 2 such messages, and will be for MSCOMCTL.OCX and MSCOMCTL2.OCX.

    I've tried an elevated command prompt and run regsvr32 in the syswow64 directory; this completed successfully but has made no difference. I'm guessing that somehow they're not registered with VB6, but if that is the case I can't see how to do that.
      My Computer


  4. Posts : 3,487
    Win 7 Pro x64/Win 10 Pro x64 dual boot
       #4

    You might be right, and if something is not registered correctly, you might want to try a reinstall of VB6.
      My Computer


  5. Posts : 24
    Windows 7 Professional 64-bit
    Thread Starter
       #5

    I've uninstalled and reinstalled it three times already. It's so frustrating as before the rebuild it worked just fine.
      My Computer


  6. Posts : 3,487
    Win 7 Pro x64/Win 10 Pro x64 dual boot
       #6

    Just thought of something. Do you have the appropriate .NET service packs installed? Version 3.5 should do.

    https://www.microsoft.com/en-ca/down...ils.aspx?id=22
      My Computer


  7. Posts : 24
    Windows 7 Professional 64-bit
    Thread Starter
       #7

    VB6 on Win 7 - problem on rebuilt system - hangs head in shame


    I tried to install .NET 3.5 on my system but it just vanished into the ether. Then found https://social.msdn.microsoft.com/Forums/vstudio/en-US/d99de752-2131-4408-a693-39ee3e7d4c7c/cannot-install-net-35-on-windows-7?forum=netfxsetup which says Windows 7 ships with .NET 3.5 SP1 and refers to a verification tool, which indeed did tell me that it was already installed.

    However, I uninstalled VB6 and tried again. Still no joy.

    Then I found that in the IDE where the controls are shown right click brings up a dialog enabling the adding of components. Browsing the list I found a couple which referenced the 'problem' files. Added them, and now the VB6 project loads and runs error free.

    Oh dear. I really should have spotted this earlier

    My apologies for all this, however many thanks for the replies which made me think more and to persevere.

    Have a virtual pint on me
      My Computer


  8. Posts : 3,487
    Win 7 Pro x64/Win 10 Pro x64 dual boot
       #8

    I'll have a pint, no problem. :)

    I'm glad you got it working. If you could, please mark the thread as solved so other members know that it's no longer an outstanding issue.
      My Computer


  9. Posts : 24
    Windows 7 Professional 64-bit
    Thread Starter
       #9

    Enjoy your e-pint.

    And thanks for reminding to mark the thread as solved, done.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:11.
Find Us