Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Object library not registered" when adding Microsoft Rich Textbox Control 6.0 (SP6)

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:

VB6 IDE 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.

like image 691
Ilya Kurnosov Avatar asked Apr 15 '13 14:04

Ilya Kurnosov


1 Answers

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

like image 179
Ilya Kurnosov Avatar answered Oct 12 '22 23:10

Ilya Kurnosov