-
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.
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
|