[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 15414
  • Last Modified:

problem with mscomctl.ocx in vb6 ide

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.


1 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.
morrisboAuthor Commented:

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.


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now