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

北城余情 提交于 2019-12-03 03:05:07

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/16018271/object-library-not-registered-when-adding-microsoft-rich-textbox-control-6-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!