Visual Studio 6 Windows Common Controls 6.0 (sp6) Windows 7, 64 bit
I have searched this issue for hours and clicked in hundreds of websites, none of them worked.
My final solution:
- run:cmd
- cd c:\Windows\SysWOW64(locate to the location)
- regsvr32 MSCOMCTL.OCX
this solves the first one. For the second one:
- run: cmd
- cd c:\Windows\Microsoft.NET\Framework\v4.0.30319
- regtlibv12 msdatsrc.tlb
done.
this may not work for everybody (considering the system version reason, etc)
I was having the same difficulty loading my VB 6 project. Here is a sample error message: "Class MSComctlLib.ProgressBar of control prgExecution was not a loaded control class."
This problem was solved by some Microsoft Magic as follows: I opened the Project Components window in my broken project. I clicked on Browse and found the file MsComctl.ocx. I clicked on OK. VB 6 then got stuck (the application non responsive). After some time, I ended the VB 6 application using the task manager.
Then, magically, when I opened up my VB 6 project to show my programming friend what a POS this project was, all the controls were back, linked as expected. Somehow, something was registered or fixed.
While waiting for a reply for ideas here, I had decided to try something. I ran regedit as administrator, navigated to the HKEY_CLASSES_ROOT\TypeLib Key and then did a search for "MSCOMCTL.OCX"... I deleted EVERY key that referenced this .ocx file.
After searching the entire registry, deleting what I found, I ran command prompt as administrator. I then navigated to C:\Windows\SysWOW64 and typed the following commands:
regsvr32 MSCOMCTL.OCX
regtlib msdatsrc.tlb
Upon registering these two files again, everything is WORKING! I scoured the web for HOURS looking for this solution to no avail. It just so happens I fixed it myself after posting a question here :( Even though Visual Studio 6 is outdated, hopefully this may still help others!
Implementing the two directives already worked for me from within "C:\Windows\SysWOW64"
regsvr32 MSCOMCTL.OCX
regtlib msdatsrc.tlb
It's worth noting that the DOS box should be in Administrator mode. Prior to this, I kept having errors in the vein "Class MSComctlLib.TreeView of control tvTreeView was not a loaded control class" and "Class MSComctlLib.ListView of control lvListView was not a loaded control class".
I am also using Visual Studio 6 on 64 bit Windows 7, with SP6 updates. I was driven here due to the same problem. In my case, I did not need to go through the registry.