The Visual Basic 6.0 IDE and SP6 setup needs to be run with UAC on, with the local user running as Admin, running with elevated privileges (right click on the setup exe and select “Run As Administrator”. Visual Basic 6.0 applications need to be run under the same security/runtime settings (UAC/Admin/Elevated). Microsoft has released a cumulative update rollup for the Microsoft Visual Basic 6.0 Service Pack 6 (SP6) Runtime Extended Files. This cumulative update rollup includes security updates and updated versions of many other controls that make up the Visual Basic 6.0 Runtime Extended Files. Vbrun60sp6.exe is a self-extracting executable file that installs versions of the Microsoft Visual Basic run-time files required by all applications created with Visual Basic 6.0.
Active9 months ago
I was asked to help work on a legacy vb6 application for someone, so I decided to toss Visual Studio 6 on my Windows 7 x64 laptop following this guide.
It installed fine, and from I can see everything is working except for Microsoft Windows Common Controls 6.0 (sp6). Microsoft Windows Common Controls-2 6.0 (sp6), Microsoft Windows Common Controls 5.0 (sp2), etc. all work just fine. However, when I try to add the Microsoft Windows Common Controls 6.0 (sp6) component I get the error:
I could not add an image, so I have uploaded a screen shot to here for anyone wanting to see it exactly:
I have tried registering/un-registering/re-registering MXCOMCTL.OCX, MSCOMCT2.OCX, msdatsrc.tlb all with no success. I have also uninstalled a known security update that may have caused issues with Windows Common Controls. I have removed IE11, even though reports state IE11 will not cause issues with MSCOMCTL.OCX the way IE10 did.
I run VB6.EXE in Windows XP SP3 Compatibility mode. With Disable visual themes, Disable desktop composition, and Disable display scaling on high DPI settings. As well as run it as administrator.
I have also attempted to open a previous project that utilizes this control, and it fails during load with the same 'blank' error as in the screen shot with the following in the generated error log:
Line 35: Class MSComctlLib.ListView of control lvData was not a loaded control class.Line 223: Class MSComctlLib.StatusBar of control Stat was not a loaded control class.
So that tells me it isn't a version issue within the .vbp like some suggest (as it happens with new, blank projects as well).
I am at wits end. Apparently people have gotten both VB6 and Windows 7 x64 to work properly (with Windows Common Controls) but NOTHING I have tried alleviates my problem. I am hoping someone here may have run into this, or have some ideas as to what is going on.
Mar 16, 2016 UCLA’s Mindful Awareness Research Center (MARC) invites you to relax and rejuvenate with a variety of simple, guided meditations for free online and on iTunes. Twelve meditations – each from five to 19 minutes long and four of them in Spanish — are available on subjects like “Breathing Meditation” and “Meditation for Working with Difficulties.”. For an introduction to mindfulness meditation that you can practice on your own, download the UCLA Mindful App (iTunes / Google Play), stream, or download the guided meditations below.Recorded by UCLA MARC's Director of Mindfulness Education, Diana Winston. Free Drop-in Meditations; Intensive Practice Program; Summer Academic Programs; C-Space (For UCLA Medical Center Staff) Community Events; Youth Mindfulness; Facilitating Mindfulness. 2020 Training in Mindfulness Facilitation (TMF) Program Graduates; Free Programming & Resources. UCLA Mindful App; Free Programming at MARC. The UCLA mindfulness meditations are available online and free for everyone to use. They range from 3 to 19 minutes. They are from the Mindfulness Awareness Research Center at UCLA. According to their website, they have made these meditations available to: disseminate mindful awareness across the lifespan through education and research. Ucla mindfulness meditations free.
While waiting for a reply for ideas here, I had decided to try something. I ran regedit as administrator, navigated to the HKEY_CLASSES_ROOTTypeLib 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:WindowsSysWOW64 and typed the following commands:
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!
JayJay
Implementing the two directives already worked for me from within 'C:WindowsSysWOW64'
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.
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.
KayKay
Just today I had the (questionable) pleasure to get VB6 code running on Windows / 64 Bit. I did come across this thread, but none of the proposed solutions worked for me.Neither worked adding references using the 'Project -> References..' menu.
To get it running, I had to manually modify the VB6 project file (*.vbp).For all the libraries I had load issue with I had to use the following notation to define as reference:Object={Registry Key}#Version#0; LIBRARY.OCXExample:Object={FAEEE763-117E-101B-8933-08002B2F4F5A}#1.1#0; DBLIST32.OCX
I had not to register any of the libraries (using regsvr32), these were all already correctly registered. I guess why my solution works is that if the 'object={[..]' notation is used (instead of the 'Reference=*G{[..]' notation) VB Studio is using the Registry Key only and gets rooted to C:WindowsSysWOW64 while as the other way ends up looking in C:WindowsSystem32
By the way, IE11 is installed. Whether or not this matters, only Bill G might know. My guess is that my solution works regardless which IE is installed. You just might have to unregister and register the missing libraries as mentioned in this thread.
Hope that helps anyone who faces similar issues.
ChrisChris
Open Registry Editor using run command regedit.
Locate HKEY_CLASSES_ROOTTypeLib Key and then did a search for 'MSCOMCTL.OCX' and deleted EVERY key that referenced this .ocx file.
Microsoft Visual Basic 6.0 Sp6 Product Download
Open command prompt (cmd) in Administrator mode. The type the following code,
In 32 bit machine,
In 64 bit machine,
CodemakerCodemaker
SIMPLE SOLUTION
Create a new blank project and save it
using NOTEPAD open the .VBP of the new project and copy the MSCOMCTL line
using NOTEPAD open the .VBP file of your project
replace the MSCOMCTL line and save it
DONE
good luck
A.WahiA.Wahi
I had the problem whereby VB6 IDE would not load the common controls (Sp6)with VB6 install on W7 64bit, specifically comctrl and msmask. I tried all the solutions proposed using regsrv32 (elevated), edited the registry, changing the version number in the vbp etc as proposed by MS and others. All failed. These solutions worked on my other 2 PCS but not this one. Eventually I removed IE11 and all worked properly afterwards. IE10 had never bene installed on thsi PC - we went straight from IE8 to IE11 and have been forced to backtrack to using IE8.
I have to say the simple solution above does not address the problem which is that the VB6 IDE will not load the common controls (using the Components menu selection under Project) - you get an error saying Object not loaded. So this will happen (and I proved this to myself) on any project, new or old that try to use theose common controls that will not load.
So my suggestion to anyone who has this problem is to try the manual register solution using regsrv32 route, then the edit the vbp to change the version, and if these fail uninstall IE11 (and defintely IE10). But this may still not be a 100% solution because if your existing project files '.vbp' contain references to the wrong common controls you need to correct that manually - this is where loading a new project, loading the Components you need inside the IDE, then edit the newly create vbp using notepad and copy the version numbers for the common controls to your existing vbp files.
AlexKenAlexKen
=> just what jay said just delete those registry entries which are pointing to other paths other than on c:windowssystem32.Those are the culprits of the error.I got those errors on my vb6 IDE and after deleting those anomalous registry entries the problem was fixed. works like a charm.
Cristian HernandezCristian Hernandez
I believe it may be related to a issue in which Microsoft released a update to the MScomCtlLib which was incorrectly patched by microsoft, causing registry errors.
I believe if you follow the advice laid out in:
OGUEROGUER
I get same issue but I was getting error below error when run regsvr32 MSCOMCTL.OCX
The module 'MSCOMCTL.OCX' was loaded but the call to DllRegisterServer failed with error code 0x8002801c.
Microsoft Visual Basic 6.0 Free
When I run CMD.EXE as Administrator, then it solved my issue.
Some Times VB6.EXE also need o run as administrator to access some registry issue.
Good Luck.
user3107325user3107325
I had the same problem running windows 7-64 with VB6. I tried the unregister and re-register solutions above but it did not solve the problem. Then I noticed that in my VB6 Components I had references to both the Microsoft Windows Common Controls -2 6.0(SP6) and Microsoft Windows Common Controls -3 6.0(SP5). I removed the SP5 reference and all now works OK. It seems that -2 6.0 SP6 supersedes -3 6.0 (SP5) and when both are present there are two references to the same control.Hope this helps.Steve
SteveSteve
My solution was replacing the MSCOMCTL.OCX on windows 10 box with one from a Windows 7 box that also had MS Access installed. For some reason, there are different MSCOMCTL.OCX 2.0 controls with the same name.
I know this sounds crazy, and might not help anyone else, but we have saved this MSCOMCTL.OCX with a readme file and it has fixed our new install errors every time.
we unregister the current MSCOMCTL.OCX that came with Windows 10 box, delete it, and register the old one we have saved.
JustJohnJustJohn
Not the answer you're looking for? Browse other questions tagged visual-studiovb6visual-studio-6microsoft-common-controls or ask your own question.
From Microsoft:
Microsoft Visual Basic Runtime 6.0 Sp6
Service Pack 6 for Visual Basic 6.0, Visual C++ 6.0 with Visual Source Safe 6.0d provides the latest updates to these products. It is recommended for all users of Visual Basic 6.0, Visual C++ 6.0 and Visual Source Safe 6.0. This version is the first release on CNET Download.com.
Visual Basic 6.0 Sp6 Download
What do you need to know about free software?
Explore Further
From Microsoft:
Microsoft Visual Basic 6.0 Sp6 For Windows 10
Service Pack 6 for Visual Basic 6.0, Visual C++ 6.0 with Visual Source Safe 6.0d provides the latest updates to these products. It is recommended for all users of Visual Basic 6.0, Visual C++ 6.0 and Visual Source Safe 6.0. This version is the first release on CNET Download.com.