I try to add Microsoft Rich Textbox Control 6.0 (SP6)
control via Project -> Components... in VB6 IDE. The control is present in the list of controls. When I tick it and click OK/Apply, I get Object library not registered
error:
Environment is Windows 7 SP1 x64 with latest updates, VB6 SP6 + KB957924. richtx32.Ocx
is present in C:\Windows\SysWOW64\
.
I tried re-registering .ocx by running this in elevated command prompt:
cd c:\windows\SysWOW64
regsvr32 /u richtx32.Ocx
regsvr32 richtx32.Ocx
Registration completes successfully, but doesn't resolve the problem.
When I look at what's going on under the hood with API Monitor, the most recent suspicious call is LoadRegTypeLib ({7c0ffab0-cd84-11d0-949a-00a0c91110ed}, 0x0001, 0x0000, LOCALE_NEUTRAL, 0x0018e82c)
that returns TYPE_E_LIBNOTREGISTERED
.
The problem has been resolved by running the following in elevated command prompt:
cd C:\Windows\SysWOW64\
regtlib msdatsrc.tlb
This also helped with other older .ocx files, like Graph32.ocx and Threed32.ocx