problem with mscomctl.ocx in vb6 ide

Posted on 2012-08-24
Last Modified: 2012-08-28
We develop VB6 applications on two different computers.

Recently, upon loading an application under development on one of the computers and attempting to open in VB6 IDE we received the following error message "path\MSCOMCTL.OCX" could not be loaded-Continue Loading Project?
The project opened on the other computer without the error message appearing.

We then opened an earlier version of the program in IDE  and it opened without the error message appearing.  This earlier version had been changed and saved at an earlier time.

I opened the .VBP file using notepad and viewed the information below for MSCOMCTL.OCX.

Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX

I then opened the .VBP file for the version that give the error message above and also viewed MSCOMCTL.OCX

Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0; MSCOMCTL.OCX
The only difference was the information in the enclosed #'s.  The first shows #2.0#, and the second shows #2.1#.  When I changed the #2.1# to #2.0# the version on the program opened without the error.

I am wondering if that information refers somehow to the version of the ocx?

When I load the program with the MSCOMCTL.OCX containing #2.0# to the other computer it loads without any errors, but if I make changes to the program in the IDE and save the project,  the MSCOMCTL.OCX in the .VBD is automatically changed to #2.1# which won't work on the other computer.

When I look at the OCX in the \WINDOWS\SYSTEM32 folder and view its properties it shows version with a comment of May 2, 2012.  so somehow a later version seems to have gotten loaded.  Don't know how this happened.  It was not an intentional change, but somehow it got changed.

Any help here is appreciated.  We need to get the two computers in sync as far as the Microsoft OCX MSCOMCTL.OCX.


Question by:morrisbo
    LVL 5

    Accepted Solution

    Just for the record.. I get this same problem.. I get around it by keeping an old project on the problem PC, and, I re-copy in all the modules that have changed from the 'master project'.. I can then compile the new exe.. I haven't tried saving this project on the problem PC to see if it will open again.

    Author Comment


    Thanks for your comment.  

    I solved my problem by copying and registering the OCX from the computer with the later version to the computer giving the error message when opening the IDE.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now