I've been having a problem loading my VB6 project lately. I'm hoping someone recognizes the problem and can help me out.
When I attempt to load one of my projects, I get an error. It says, "Errors during load. Refer to 'C:\folder\frmWhatever.log' for details. When I look at the log file, it says...
[tt][blue]Line 35: Class MSComctlLib.StatusBar of control StatusBar1 was not a loaded control class.[/blue][/tt]
I know the status bar control is in Windows Common Controls 6.0, so I create a new VB project and attempt to add that component. I click Project -> Components, scroll down to Microsoft Windows Common Controls 6.0 (SP6). I select it, and click Apply. I then get an error message that say Error in loading DLL.
A search led me to this: thread222-1050587. When I run the code posted by HughLerwill, everything in the list returns Loaded ok/ Unloaded ok except GRID32.ocx, VBPrnDlg.dll, and MUST_FAIL.dll. Of signifigance though... MSCOMCTL.OCX appears to be ok. I then ran the compiled code from my application, and sure enough, there's the status bar functioning properly. So, it appears that the problem I am experiencing is with the VB IDE. So then I tried including other components. I could successfully use:
Microsoft Comm Control 6.0
Microsoft Common Dialog Control 6.0
Microsoft Rich Text Box Control 6.0
Microsoft Windows Common Controls 5.0
Microsoft Windows Common Controls-3 6.0
I'm stumped. I really don't know what else to do.
I'm running Visual Basic 6.0 (SP6). The about screen says version 9782 in the lower left corner of the window.
MSCOMCTL.OCX version 6.1.97.86
comcat.dll version 5.0.2600.1
mscomct2.ocx version 6.1.97.82
I'm running Windows XP service pack 2.
Other things I have tried:
I've run registry cleaners.
I've re-installed Visual Studio 6.0 (enterprise edition).
I've reinstalled Service Pack 6.
I've reinstalled windows common controls 6.0.
I don't know what else to try.
-George
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
When I attempt to load one of my projects, I get an error. It says, "Errors during load. Refer to 'C:\folder\frmWhatever.log' for details. When I look at the log file, it says...
[tt][blue]Line 35: Class MSComctlLib.StatusBar of control StatusBar1 was not a loaded control class.[/blue][/tt]
I know the status bar control is in Windows Common Controls 6.0, so I create a new VB project and attempt to add that component. I click Project -> Components, scroll down to Microsoft Windows Common Controls 6.0 (SP6). I select it, and click Apply. I then get an error message that say Error in loading DLL.
A search led me to this: thread222-1050587. When I run the code posted by HughLerwill, everything in the list returns Loaded ok/ Unloaded ok except GRID32.ocx, VBPrnDlg.dll, and MUST_FAIL.dll. Of signifigance though... MSCOMCTL.OCX appears to be ok. I then ran the compiled code from my application, and sure enough, there's the status bar functioning properly. So, it appears that the problem I am experiencing is with the VB IDE. So then I tried including other components. I could successfully use:
Microsoft Comm Control 6.0
Microsoft Common Dialog Control 6.0
Microsoft Rich Text Box Control 6.0
Microsoft Windows Common Controls 5.0
Microsoft Windows Common Controls-3 6.0
I'm stumped. I really don't know what else to do.
I'm running Visual Basic 6.0 (SP6). The about screen says version 9782 in the lower left corner of the window.
MSCOMCTL.OCX version 6.1.97.86
comcat.dll version 5.0.2600.1
mscomct2.ocx version 6.1.97.82
I'm running Windows XP service pack 2.
Other things I have tried:
I've run registry cleaners.
I've re-installed Visual Studio 6.0 (enterprise edition).
I've reinstalled Service Pack 6.
I've reinstalled windows common controls 6.0.
I don't know what else to try.
-George
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom