“对象库未注册"添加 Microsoft 富文本框控件 6.0 (SP6) 时 [英] "Object library not registered" when adding Microsoft Rich Textbox Control 6.0 (SP6)

查看:52
本文介绍了“对象库未注册"添加 Microsoft 富文本框控件 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:

Environment is Windows 7 SP1 x64 with latest updates, VB6 SP6 + KB957924. richtx32.Ocx is present in C:WindowsSysWOW64.

I tried re-registering .ocx by running this in elevated command prompt:

cd c:windowsSysWOW64
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:WindowsSysWOW64
regtlib msdatsrc.tlb

This also helped with other older .ocx files, like Graph32.ocx and Threed32.ocx

这篇关于“对象库未注册"添加 Microsoft 富文本框控件 6.0 (SP6) 时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆