注册 MSCOMCTL.OCX 后,TreeView 控件仍不可用 [英] TreeView Control isn't still available with MSCOMCTL.OCX registered

查看:83
本文介绍了注册 MSCOMCTL.OCX 后,TreeView 控件仍不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正在处理 MS Access 数据库,但我在使用库 MSCOMCTL.OCX 时遇到困难.

At this moment I'm working on a MS Access database, and I have difficulties with the library MSCOMCTL.OCX.

问题如下:给定 Windows 7 x64Microsoft Office 2010 x64MSCOMCTL.OCX v6.1.98.34(其中已在 SysWOW64 文件夹中的 regsvr32 帮助下注册,我无法使用当前的 TreeView(MsComCtlLib.TreeCtrl.2 类)在某些形式的数据库中.每次代码接近任何 TreeView 的(读取,节点的)属性时,我都会收到以下消息:

The problem is the following: given Windows 7 x64, Microsoft Office 2010 x64 and MSCOMCTL.OCX v6.1.98.34 (which was registered with the help of regsvr32 in the folder SysWOW64), I can't use the TreeView (MsComCtlLib.TreeCtrl.2 class) present in some forms of the database. Every time the code approaches any TreeView's (read, Node's) property, I receive the following message:

对象不支持此属性或方法"(错误 438)

而在 Windows 7 x32 中,数据库工作正常.

while in Windows 7 x32 the database works fine.

试图了解出了什么问题,我发现库 Microsoft Windows Common Controls 6.0 (SP6) 存在于参考..."对话框中看到的列表中并被选中,但我没有当我处于构造器模式时,在可用 ActiveX 对象列表中看不到 Microsoft TreeView Control 6.0.

Trying to understand what's wrong, I discovered that the library Microsoft Windows Common Controls 6.0 (SP6) exists in the list seen in the 'References...' dialog and is checked, but I don't see Microsoft TreeView Control 6.0 in the list of available ActiveX Objects when I'm in the Constructor mode.

按照网上找到的一些解决方案,我执行了regedit.exe,看到HKEY_CLASSES_ROOT\TypeLib\{831FDD16-0C5C-11D2-A9FC路径中有两个文件夹"-0000F8754DA1}"2.0""2.1".此外,文件 MSCOMCTL.OCX 的路径在 "2.1" 中,而 "2.0" 也不是空的 - 它包含 PrimaryInteropAssemblyName 属性,例如 "2.1" 中不存在的属性.

Following some solutions found in the Internet, I executed regedit.exe and saw that there are two "folders" in the path HKEY_CLASSES_ROOT\TypeLib\{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}, "2.0" and "2.1". Besides, the path to the file MSCOMCTL.OCX is in "2.1", while "2.0" is not also empty - it contains PrimaryInteropAssemblyName property for example, which isn't present in "2.1".

那么,我应该怎么做才能使数据库中的 TreeView 工作?正如我之前提到的,我看到了一些解决方案,但我害怕使用它们,因为数据库所在的计算机不是我的,并且不希望进行更改,这会影响系统的安全性.

So, what should I do to make TreeViews in my database work? As I've mentioned before, I saw some solutions, but I'm afraid to use them because the computer, where the database is in, is not mine and it's undesirable to make the changes, which can affect security of the system.

推荐答案

默认安装的 MSCOMCTL 版本与 64 位不兼容.不幸的是,你运气不好.再多的注册表修改也无法让 32 位的控制在 64 位办公中发挥作用.

The version of MSCOMCTL that is installed by default is not 64-bit compatible. You're unfortunately out of luck. No amount of modifying the registry is going to make a 32-bit only control work in 64-bit office.

但是,MS 显然包含 64 位兼容版本的 MSCOMCTL 与 Office 365 专业增强版安装(来源).你可以考虑购买,或者通过其他方式获得.

However, MS apparently includes a 64-bit compatible version of MSCOMCTL with Office 365 ProPlus installations (source). You can consider buying that, or obtaining it through other means.

这篇关于注册 MSCOMCTL.OCX 后,TreeView 控件仍不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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