惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Spread Privacy
Spread Privacy
H
Hacker News: Front Page
PCI Perspectives
PCI Perspectives
Webroot Blog
Webroot Blog
罗磊的独立博客
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Google Online Security Blog
Google Online Security Blog
Last Week in AI
Last Week in AI
美团技术团队
Help Net Security
Help Net Security
The Hacker News
The Hacker News
C
Cisco Blogs
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
The Register - Security
The Register - Security
IT之家
IT之家
WordPress大学
WordPress大学
Jina AI
Jina AI
Recent Commits to openclaw:main
Recent Commits to openclaw:main
H
Help Net Security
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
NISL@THU
NISL@THU
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
Scott Helme
Scott Helme
V
Vulnerabilities – Threatpost
B
Blog
T
Tenable Blog
博客园 - 三生石上(FineUI控件)
T
The Exploit Database - CXSecurity.com
S
Security Affairs
小众软件
小众软件
Hacker News: Ask HN
Hacker News: Ask HN
Security Latest
Security Latest
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
W
WeLiveSecurity
A
Arctic Wolf
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence

博客园 - 萝卜L

TIA 轨迹 Trace USB Device Tree Viewer & 设备管理器 - 通用串行总线控制器 树莓派 DT 西门子 PLC 1500 过程时间性能 树莓派5 GPIO 输出 PWM PD 协议 E-Marker芯片、私有协议,联想 ThinkPad 135W 电源 Slim方口 ThinkPlus电源 树莓派 RaspberryPi 5 硬件 设备(dev) 芯片(SoC) BCM 线路编号(line) GPIO 针脚 gpioinfo pinout Solid Edge 仿真 Dynamic Designer Motion (DDM) Solid Edge PMI 智能尺寸 尺寸平面 Solid_Edge,尺寸、测量,从动、驱动,同步、顺序建模,变量表 变量类型 Dim Var SolidWorks & Solid Edge 装配体 零件 部件 移动 通过批处理快捷方式参数化调用 Lua 脚本:完整方案与备选方式 Win10 隐藏的 占用空间的 大文件 组态王 7.5 西门子 驱动 各版本 严重 异常 PLC、上位(HMI)接口约定 Modbus RTU TCP 网关 拓扑 TIA SIM 授权 iup "creation only"的时刻 lua 5.3 glue srlua/wsrlua console/windows CMake Luarocks Lua IUP Plot 柱状图 示例 GitHub Desktop 连接 Gitee 失败 EPLAN P8 学习笔记 配图 20250114 TIA Portal V19 STEP 7 Professional WinCC - Setup 安装过程中出错 失败 笔记 配图 20250110 windows zeroBrane Studio(zbstudio/zbs)配置 iuplua V3 Lua 找不到指定模块 找不到指定的程序 V2 powershell 作服务端 响应网络(socket tcp)连接 提供文件夹大小查询服务 V1.1 网络 主机名 地址 解析 记戴尔/Dell U2913WM 显示器故障
OCX(ActiveX COM) 控件测试容器(tstcon32) 失败 问题 解决
萝卜L · 2025-04-03 · via 博客园 - 萝卜L

问题

  • 在ForceControl|力控"组态开发环境"(32位)-复合组件-ActiveX容器,添加"DBGrid Control"控件,不正常,为空白,无属性、方法;
  • 在tstcon32(ActiveX 控件测试容器)(32位)-容器-插入新控件|插入控件,失败,报错"未能创建控件"。
  • 在Excel(64-bit)-开发工具-Visual Basic-Microsoft Visual Basic for Applications-工具-引用、附加控件,可以添加,但无法实例化控件。

测试好多OCX组件都存在此问题。

OCX控件

"DBGrid Control"控件对应

  • "X:\Windows\SysWow64\msdatgrd.ocx"
  • "Microsoft DataGrid Control 6.0 (SP6) (OLEDB)"

ActiveX 控件测试容器
ActiveX 控件测试容器 - DataGrid msdatgrd.ocx

Excel VBA 引用控件
Excel-开发工具-Visual Basic-Microsoft Visual Basic for Applications VBA -工具-引用、附加控件

解决

目前找到的3个核心

RegSvr32

使用RegSvr32注册。

参考:

否则报错:

  • 路径问题:RegSvr32 -  模块 MSDATGRD.OCX (ActiveX) .DLL 加载失败 请确保该二进制存储在指定的路径中,或者调试它以检查该二进制或相关的.DLL文件是否有问题。找不到指定的模块.png
  • x86 32位 x64位问题:RegSvr32 模块 ocx 与 Windows 版本不兼容 x86 32位 x64位
  • 权限问题:RegSvr32 - 模块已加载 但对 DllRegisterServer 调用失败

成功时:RegSvr32 DllRegisterServer SysWOW64

依赖检查

使用Dependencies - An open-source modern Dependency Walker检查,此处无依赖问题。

展开后第二级报缺少依赖,但最终不影响。

  • "K:\Windows\SysWOW64\kernel32.dll" \ "ext-ms-win-oobe-query-l1-1-0.dll",
  • "K:\Windows\SysWOW64\ole32.dll" \ "ext-ms-win32-subsystem-query-l1-1-0.dll"。

加载过程

使用Process Monitor - Sysinternals | Microsoft Learn检查,是License(vbctrls.reg)问题。
参见下面的[[License]]。

问题解决


相关尝试

仅作记录

OleViewDotNet

流程:

  1. 安装
    tyranid/oleviewdotnet: A .net OLE/COM viewer and inspector to merge functionality of OleView and Test Container
    PowerShell Gallery | OleViewDotNet 1.16
  2. 配置
    允许执行策略
    about_Execution_Policies - PowerShell | Microsoft Learn
  3. 执行调用
  • PowerShell-Show-ComDatabase
  • 文件系统-"Program Files\WindowsPowerShell\Modules\OleViewDotNet\1.16\OleViewDotNet.exe"

OS对VB6的支持

操作系统已支持,无需额外配置。
详情:Support Statement for Visual Basic 6.0 | Microsoft Learn-"VB6 Runtime Extended Files"

MSSTDFMT.DLL

对应"Microsoft Data Formatting Object Library",貌似为"msdatgrd.ocx"依赖库,对应"can not initialize data binding"问题,但不是此问题。
此处仅记录过程:

64位进程 32位组件

貌似64位进程可以运行32位组件,已经由ActiveX转换。
参见:ActiveX OCX on 64-bit Office-VBForums|

同名控件

  • 显示的位置(system32)与文件系统'实际'位置(syswow64)不符。
  • 文件系统中两个位置,Excel(64位)中生效的控件实际路径是"K:\Program Files\Microsoft Office\root\vfs\System\MSCOMCTL.OCX"(64位)
    另一个"K:\Windows\SysWOW64\MSCOMCTL.OCX"为32位。
    Excel - Microsoft Visual Basic for Application(VBA) - 附加控件 system32-MSCOMCTL.OCX,ActiveX 控件测试容器 SysWow64,TreeView Control

32位、64位检测

License

运行时库runtime

非依赖问题,但仍尝试安装

兼容性问题

做好以上几点,没有老旧兼容性问题。

Win11 Smart App Control(SAC)

其他参考