-
Nov 17th, 2020, 02:33 PM
#1
Thread Starter
New Member
-
Nov 17th, 2020, 05:09 PM
#2
New Member
Re: MSCOMCTL.OCX not loading properly in VB6 on Windows 7
Hi,
Just a few ideas,
if you are running vmware maybe you are lucky and you got a restore point previos uninstalling
if not, make a restore point with the VM prior to do more tests..
Other option is to create a 2nd VM , same windows box/Version/languaje, install the aplication and try to copy Registry and files missing.
hope you can fix it..
-
Nov 17th, 2020, 05:16 PM
#3
New Member
Re: MSCOMCTL.OCX not loading properly in VB6 on Windows 7
sorry i duplicated the posting by mistake
-
Nov 25th, 2020, 01:26 PM
#4
Thread Starter
New Member
Re: MSCOMCTL.OCX not loading properly in VB6 on Windows 7
After it giving it some more thought, I'm thinking of making sure I've got a recent Registry backup (a few minutes' work with the Registry Editor) before deleting the following keys/values:
Code:
HKEY_CLASSES_ROOT\TypeLib\{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}\2.2
HKEY_CLASSES_ROOT\TypeLib\{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}\2.2\0
HKEY_CLASSES_ROOT\TypeLib\{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}\2.2\0\win32
After doing this, I'd restart the VB6 IDE and check the components dialog - the mscomctl.ocx file is definitely located in the C:\Windows\SysWOW64 folder.
-
Jan 7th, 2021, 05:31 AM
#5
Thread Starter
New Member
Re: MSCOMCTL.OCX not loading properly in VB6 on Windows 7
Okay, so just a final update on this one as I've been able to fix it since my last post after doing some more research.
After taking a backup of the VB6 project and closing down the IDE, I downloaded a copy of the NirSoft RegDllView freeware tool (their website is here) and ran that on the VM - this told me that the controls in the installed MSCOMCTL.OCX file were version 2.0 (the project is configured for version 2.2).
I installed the Microsoft KB3096896 update and ran the RegDllView tool again and that told me the MSCOMCTL.OCX file's controls were now at version 2.2, which is what I wanted, but the project was still giving me System Registry access errors.
I then extracted the files from this update's installer to a local folder, unregistered the existing MSCOMCTL.OCX file using regsvr32, and renamed the MSCOMCTL.OCX and MSCOMCTL.DEP files in the C:\Windows\SysWOW64 folder before copying the ones over from the KB folder.
I then ran regsvr32 to register the new MSCOMCTL.OCX and ran RegDllView to check if the update had worked: the controls were now showing as version 2.2.
I then launched the VB6 IDE as Administrator (turns out that I should have been doing this as well, so I've updated my shortcuts to set that option), and reopened the project successfully.
So, if anyone else encounters this type of problem, I hope this thread can help them too.
Many thanks.
-
Feb 25th, 2021, 01:25 AM
#6
New Member
Re: [RESOLVED] MSCOMCTL.OCX not loading properly in VB6 on Windows 7
Hello,
I have a VB6.0 project , and when i try to open it , get the error message mscomctl.ocx could not be loaded
(Windows 10 1809 , problem append after Windows update , Office 365 ... )
after many investigation search .... C:\Windows\SysWOW64>regsvr32 MSCOMCTL.OCX , nothing works :-(
i was in such situation
- Create a new Project / insert MSCOMCTL.OCX => OK
- Open my project => Error Message mscomctl.ocx could not be loaded
--
this is the solution , i have found :
Edit File *.vbp in text editor , the difference was
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.2#0; MSCOMCTL.OCX
=> this is the first time i manually Edit the vbp file , but this solve my problem
I hop it can be helpful ....
-
Feb 25th, 2021, 04:36 AM
#7
Thread Starter
New Member
Re: [RESOLVED] MSCOMCTL.OCX not loading properly in VB6 on Windows 7
 Originally Posted by Xav73
Hello,
I have a VB6.0 project , and when i try to open it , get the error message mscomctl.ocx could not be loaded
(Windows 10 1809 , problem append after Windows update , Office 365 ... )
after many investigation search .... C:\Windows\SysWOW64>regsvr32 MSCOMCTL.OCX , nothing works :-(
i was in such situation
- Create a new Project / insert MSCOMCTL.OCX => OK
- Open my project => Error Message mscomctl.ocx could not be loaded
--
this is the solution , i have found :
Edit File *.vbp in text editor , the difference was
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.2#0; MSCOMCTL.OCX
=> this is the first time i manually Edit the vbp file , but this solve my problem
I hop it can be helpful ....
Hi Xav73 - yes, I did try that first after looking online, but what happened was I'd uninstalled the application that had put on the version 2.2 MSCOMCTL.OCX file and I was left with just the version 2.0 one.
So when I edited the vbp file, it would keep failing (I did get an error about VB6 being unable to access the Registry, but that was because I hadn't enabled the "Run as Administrator" option in my shortcuts to the IDE).
The method I mentioned was the one that worked for me in the end though, but I'd recommend people try your suggestion first to see if it works.
-
Feb 25th, 2021, 05:42 AM
#8
Re: [RESOLVED] MSCOMCTL.OCX not loading properly in VB6 on Windows 7
I stumbled into the same yesterday when I had to use a new company laptop.
I installed SP6, but the version of MSCOMCTL was 2.0
So based on post #5 by RichardWatt I downloaded and installed the Microsoft Visual Basic 6.0 Service Pack 6 Security Rollup Update
This fixed everything, making sure the version was 2.2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|