Solved VB6 on Win 7 - problem on rebuilt system

tpriest

New member
Local time
2:43 PM
Messages
24
I've used VB6 for some very simple domestic programs for many years, it does the job. For 4 years or so my Win 7 Pro PC has run VB6 ok.

I upgraded the PC to an SSD 2 weeks and have clean installed Win 7 Pro and reinstalled all the apps.

VB6 installs and runs but...

One program has an UpDown control and when VB6 loads the project I get errors on load and a log entry saying "Class MSComCtl2.UpDown of control UpDown was not a loaded control class"

The project file for the program includes these 3 lines

Object={F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0; COMDLG32.OCX
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0; MSCOMCTL.OCX
Object={86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCT2.OCX

Searching the Registry there are entries for them with those CLSIDs, and all 3 .OCX files are in SysWow64.

Despite this error the VB project loads and runs - albeit with the UpDown control.

It would seem therefore that I've not done something this time installing VB6 that I must have done earlier.

I have Ccleaner & Belarc listings from the pre-rebuild system and there's no sign of any components other than VB6 itself being installed, no MSDN, no MDAC.

Any thoughts on how to get these ActiveX controls enabled?
 

My Computer

Computer Manufacturer/Model Number
Local PC Shop
OS
Windows 7 Professional 64-bit
CPU
2.80 gigahertz Intel Core i5 760
Motherboard
Gigabyte Technology Co., Ltd. P55-USB3
Memory
4 Gbytes
Graphics Card(s)
NVIDIA GeForce GT 430
Sound Card
Integrated
Monitor(s) Displays
Relisys 17"
Screen Resolution
1280x1024
Hard Drives
1 Tb Seagate ST31000528AS
PSU
Not known
Case
Not known
Cooling
Not known
Keyboard
DEC standard office, wired
Mouse
Basic Microsoft optical wheel mouse, wired
Internet Speed
8Mbits/second
Is the up/down control part of a VB6 add on package? For instance, Visual Studio often has add on extensions that offer free controls, but they have to be downloaded and installed.

Does VB6 have extensions like that? If so, it might be missing.

One other thing... Are you missing a DLL or resource file of any kind for this project?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Mellon Labs (custom build)
OS
Win 7 Pro x64/Win 10 Pro x64 dual boot
CPU
AMD FX 8350 Vishera @ 4200
Motherboard
ASUS M5A97 R2.0
Memory
16 GB Mushkin Blackline DDR3-2400 @ 1866 (9-10-10-10-31)
Graphics Card(s)
XFX Radeon R9 280 Double D Black Edition
Sound Card
Realtek HD Audio on MB. Sounds great.
Monitor(s) Displays
Acer 24", Acer 22"
Screen Resolution
3840 x 1080
Hard Drives
1 x Mushkin Chronos 120 GB SSD (Win 10)
1 x Samsung 850 EVO 250 GB SSD (Win 7)
1 x WD 1TB SATA Blue
1 x WD 1TB SATA Green
PSU
Corsair TX-750
Case
CoolerMaster HAF 912+
Cooling
Coolermaster Seidon 240M Liquid AIO. 6 case fans
Keyboard
Logitech G710+
Mouse
Logitech G500s
Internet Speed
Much better since I got fiber, but still way overpriced.
Antivirus
MSE, Malware Bytes for scanning
Browser
Firefox
Other Info
Corsair VOID USB headphones.

A Mellon Labs X-1 - LCD Smartie driven system status display.

Brought to you by the letter E
Thaks for that.

UpDown is one of the controls included in MSCOMCTL2.OCX.

I can only assume that somehow I've failed to properly set it up.

I've also just realised that the first error messages when loading the VB project is Object library not registered. There are 2 such messages, and will be for MSCOMCTL.OCX and MSCOMCTL2.OCX.

I've tried an elevated command prompt and run regsvr32 in the syswow64 directory; this completed successfully but has made no difference. I'm guessing that somehow they're not registered with VB6, but if that is the case I can't see how to do that.
 

My Computer

Computer Manufacturer/Model Number
Local PC Shop
OS
Windows 7 Professional 64-bit
CPU
2.80 gigahertz Intel Core i5 760
Motherboard
Gigabyte Technology Co., Ltd. P55-USB3
Memory
4 Gbytes
Graphics Card(s)
NVIDIA GeForce GT 430
Sound Card
Integrated
Monitor(s) Displays
Relisys 17"
Screen Resolution
1280x1024
Hard Drives
1 Tb Seagate ST31000528AS
PSU
Not known
Case
Not known
Cooling
Not known
Keyboard
DEC standard office, wired
Mouse
Basic Microsoft optical wheel mouse, wired
Internet Speed
8Mbits/second
You might be right, and if something is not registered correctly, you might want to try a reinstall of VB6.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Mellon Labs (custom build)
OS
Win 7 Pro x64/Win 10 Pro x64 dual boot
CPU
AMD FX 8350 Vishera @ 4200
Motherboard
ASUS M5A97 R2.0
Memory
16 GB Mushkin Blackline DDR3-2400 @ 1866 (9-10-10-10-31)
Graphics Card(s)
XFX Radeon R9 280 Double D Black Edition
Sound Card
Realtek HD Audio on MB. Sounds great.
Monitor(s) Displays
Acer 24", Acer 22"
Screen Resolution
3840 x 1080
Hard Drives
1 x Mushkin Chronos 120 GB SSD (Win 10)
1 x Samsung 850 EVO 250 GB SSD (Win 7)
1 x WD 1TB SATA Blue
1 x WD 1TB SATA Green
PSU
Corsair TX-750
Case
CoolerMaster HAF 912+
Cooling
Coolermaster Seidon 240M Liquid AIO. 6 case fans
Keyboard
Logitech G710+
Mouse
Logitech G500s
Internet Speed
Much better since I got fiber, but still way overpriced.
Antivirus
MSE, Malware Bytes for scanning
Browser
Firefox
Other Info
Corsair VOID USB headphones.

A Mellon Labs X-1 - LCD Smartie driven system status display.

Brought to you by the letter E
I've uninstalled and reinstalled it three times already. It's so frustrating as before the rebuild it worked just fine.
 

My Computer

Computer Manufacturer/Model Number
Local PC Shop
OS
Windows 7 Professional 64-bit
CPU
2.80 gigahertz Intel Core i5 760
Motherboard
Gigabyte Technology Co., Ltd. P55-USB3
Memory
4 Gbytes
Graphics Card(s)
NVIDIA GeForce GT 430
Sound Card
Integrated
Monitor(s) Displays
Relisys 17"
Screen Resolution
1280x1024
Hard Drives
1 Tb Seagate ST31000528AS
PSU
Not known
Case
Not known
Cooling
Not known
Keyboard
DEC standard office, wired
Mouse
Basic Microsoft optical wheel mouse, wired
Internet Speed
8Mbits/second

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Mellon Labs (custom build)
OS
Win 7 Pro x64/Win 10 Pro x64 dual boot
CPU
AMD FX 8350 Vishera @ 4200
Motherboard
ASUS M5A97 R2.0
Memory
16 GB Mushkin Blackline DDR3-2400 @ 1866 (9-10-10-10-31)
Graphics Card(s)
XFX Radeon R9 280 Double D Black Edition
Sound Card
Realtek HD Audio on MB. Sounds great.
Monitor(s) Displays
Acer 24", Acer 22"
Screen Resolution
3840 x 1080
Hard Drives
1 x Mushkin Chronos 120 GB SSD (Win 10)
1 x Samsung 850 EVO 250 GB SSD (Win 7)
1 x WD 1TB SATA Blue
1 x WD 1TB SATA Green
PSU
Corsair TX-750
Case
CoolerMaster HAF 912+
Cooling
Coolermaster Seidon 240M Liquid AIO. 6 case fans
Keyboard
Logitech G710+
Mouse
Logitech G500s
Internet Speed
Much better since I got fiber, but still way overpriced.
Antivirus
MSE, Malware Bytes for scanning
Browser
Firefox
Other Info
Corsair VOID USB headphones.

A Mellon Labs X-1 - LCD Smartie driven system status display.

Brought to you by the letter E
VB6 on Win 7 - problem on rebuilt system - hangs head in shame

I tried to install .NET 3.5 on my system but it just vanished into the ether. Then found https://social.msdn.microsoft.com/Forums/vstudio/en-US/d99de752-2131-4408-a693-39ee3e7d4c7c/cannot-install-net-35-on-windows-7?forum=netfxsetup which says Windows 7 ships with .NET 3.5 SP1 and refers to a verification tool, which indeed did tell me that it was already installed.

However, I uninstalled VB6 and tried again. Still no joy.

Then I found that in the IDE where the controls are shown right click brings up a dialog enabling the adding of components. Browsing the list I found a couple which referenced the 'problem' files. Added them, and now the VB6 project loads and runs error free.

Oh dear. I really should have spotted this earlier :o

My apologies for all this, however many thanks for the replies which made me think more and to persevere.

Have a virtual pint on me :D
 

My Computer

Computer Manufacturer/Model Number
Local PC Shop
OS
Windows 7 Professional 64-bit
CPU
2.80 gigahertz Intel Core i5 760
Motherboard
Gigabyte Technology Co., Ltd. P55-USB3
Memory
4 Gbytes
Graphics Card(s)
NVIDIA GeForce GT 430
Sound Card
Integrated
Monitor(s) Displays
Relisys 17"
Screen Resolution
1280x1024
Hard Drives
1 Tb Seagate ST31000528AS
PSU
Not known
Case
Not known
Cooling
Not known
Keyboard
DEC standard office, wired
Mouse
Basic Microsoft optical wheel mouse, wired
Internet Speed
8Mbits/second
I'll have a pint, no problem. :)

I'm glad you got it working. If you could, please mark the thread as solved so other members know that it's no longer an outstanding issue.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Mellon Labs (custom build)
OS
Win 7 Pro x64/Win 10 Pro x64 dual boot
CPU
AMD FX 8350 Vishera @ 4200
Motherboard
ASUS M5A97 R2.0
Memory
16 GB Mushkin Blackline DDR3-2400 @ 1866 (9-10-10-10-31)
Graphics Card(s)
XFX Radeon R9 280 Double D Black Edition
Sound Card
Realtek HD Audio on MB. Sounds great.
Monitor(s) Displays
Acer 24", Acer 22"
Screen Resolution
3840 x 1080
Hard Drives
1 x Mushkin Chronos 120 GB SSD (Win 10)
1 x Samsung 850 EVO 250 GB SSD (Win 7)
1 x WD 1TB SATA Blue
1 x WD 1TB SATA Green
PSU
Corsair TX-750
Case
CoolerMaster HAF 912+
Cooling
Coolermaster Seidon 240M Liquid AIO. 6 case fans
Keyboard
Logitech G710+
Mouse
Logitech G500s
Internet Speed
Much better since I got fiber, but still way overpriced.
Antivirus
MSE, Malware Bytes for scanning
Browser
Firefox
Other Info
Corsair VOID USB headphones.

A Mellon Labs X-1 - LCD Smartie driven system status display.

Brought to you by the letter E
Enjoy your e-pint.

And thanks for reminding to mark the thread as solved, done.
 

My Computer

Computer Manufacturer/Model Number
Local PC Shop
OS
Windows 7 Professional 64-bit
CPU
2.80 gigahertz Intel Core i5 760
Motherboard
Gigabyte Technology Co., Ltd. P55-USB3
Memory
4 Gbytes
Graphics Card(s)
NVIDIA GeForce GT 430
Sound Card
Integrated
Monitor(s) Displays
Relisys 17"
Screen Resolution
1280x1024
Hard Drives
1 Tb Seagate ST31000528AS
PSU
Not known
Case
Not known
Cooling
Not known
Keyboard
DEC standard office, wired
Mouse
Basic Microsoft optical wheel mouse, wired
Internet Speed
8Mbits/second
Back
Top