





















测试好多OCX组件都存在此问题。
"DBGrid Control"控件对应
ActiveX 控件测试容器

Excel VBA 引用控件

目前找到的3个核心
使用RegSvr32注册。
需使用管理员权限运行,
需指定OCX路径,包含".OCX"文件后缀。
OCX区分32位、64位,需放到对应的系统文件夹"SysWOW64"、"system32"。
无需关注"RegSvr32.exe"的"system32"(64-bit)、"SysWOW64"(32-bit)版本。
参见:activex - How to register both the Win32 and x64 version of an OCX control on single computer - Stack Overflow、Using 32-bit or 64-bit ActiveX Components on x64 Windows – Chilkat Tech Notes
参考:
否则报错:



成功时:
使用Dependencies - An open-source modern Dependency Walker检查,此处无依赖问题。
展开后第二级报缺少依赖,但最终不影响。
使用Process Monitor - Sysinternals | Microsoft Learn检查,是License(vbctrls.reg)问题。
参见下面的[[License]]。
问题解决
仅作记录
流程:
Show-ComDatabase,操作系统已支持,无需额外配置。
详情:Support Statement for Visual Basic 6.0 | Microsoft Learn-"VB6 Runtime Extended Files"
对应"Microsoft Data Formatting Object Library",貌似为"msdatgrd.ocx"依赖库,对应"can not initialize data binding"问题,但不是此问题。
此处仅记录过程:
貌似64位进程可以运行32位组件,已经由ActiveX转换。
参见:ActiveX OCX on 64-bit Office-VBForums|

非依赖问题,但仍尝试安装
做好以上几点,没有老旧兼容性问题。
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。