scbs29
2019-01-20 18:22:44 UTC
Hello all
I am trying to compile an old vb6 program on my new pc. It is the
first time on this machine. It was ok on my old pc which suddenly died
on me and had to be replaced.
This particular program uses a TreeView control from within
mscomctl.ocx. I have copied mscomctl.ocx from sysWOW64 to system32 and
used regsvr32 to register it successfully.
I then open the program code in VB6 and open Project/Components. I
then select Microsoft Windows Controls 6.0 (SP6) and click OK.
I then get a dialog stating Object library not registered. The log
file produced when the form is loaded into the IDE states:
Line 36: Class MSComctlLib.TreeView of control tv1 was not a loaded
control class.
I have tried registernig from within sysWOW64 but with the same
result.
This program compiled and ran with my old pc, Win7 Pro 64-bit, the
same as my new one.
Can anyone help ?
TIA
Intel Core i5-3570K CPU @ 3.40GHz
16.0GB Dual-Channel DDR3 @ 800MHz (11-11-11-28)
2047MB NVIDIA GeForce GTX 960 (ZOTAC International)
Windows 7 Pro, 64-bit
MoBo Gigabyte Technology Co. Ltd. Z77X-UP5 TH-CF (Intel Core i5-3570K
Direct X 11
I am trying to compile an old vb6 program on my new pc. It is the
first time on this machine. It was ok on my old pc which suddenly died
on me and had to be replaced.
This particular program uses a TreeView control from within
mscomctl.ocx. I have copied mscomctl.ocx from sysWOW64 to system32 and
used regsvr32 to register it successfully.
I then open the program code in VB6 and open Project/Components. I
then select Microsoft Windows Controls 6.0 (SP6) and click OK.
I then get a dialog stating Object library not registered. The log
file produced when the form is loaded into the IDE states:
Line 36: Class MSComctlLib.TreeView of control tv1 was not a loaded
control class.
I have tried registernig from within sysWOW64 but with the same
result.
This program compiled and ran with my old pc, Win7 Pro 64-bit, the
same as my new one.
Can anyone help ?
TIA
Intel Core i5-3570K CPU @ 3.40GHz
16.0GB Dual-Channel DDR3 @ 800MHz (11-11-11-28)
2047MB NVIDIA GeForce GTX 960 (ZOTAC International)
Windows 7 Pro, 64-bit
MoBo Gigabyte Technology Co. Ltd. Z77X-UP5 TH-CF (Intel Core i5-3570K
Direct X 11
--
remove fred before emailing
remove fred before emailing