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

推荐订阅源

T
Tor Project blog
Cloudbric
Cloudbric
S
Secure Thoughts
Google Online Security Blog
Google Online Security Blog
N
News | PayPal Newsroom
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Privacy & Cybersecurity Law Blog
Simon Willison's Weblog
Simon Willison's Weblog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 三生石上(FineUI控件)
E
Exploit-DB.com RSS Feed
WordPress大学
WordPress大学
F
Fortinet All Blogs
O
OpenAI News
IT之家
IT之家
Vercel News
Vercel News
G
Google Developers Blog
Spread Privacy
Spread Privacy
T
The Blog of Author Tim Ferriss
T
The Exploit Database - CXSecurity.com
V
V2EX - 技术
I
Intezer
N
News and Events Feed by Topic
W
WeLiveSecurity
宝玉的分享
宝玉的分享
AWS News Blog
AWS News Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Proofpoint News Feed
I
InfoQ
The GitHub Blog
The GitHub Blog
C
Check Point Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
L
LangChain Blog
月光博客
月光博客
Microsoft Security Blog
Microsoft Security Blog
C
CERT Recently Published Vulnerability Notes
Hugging Face - Blog
Hugging Face - Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Comments on: Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
博客园 - 【当耐特】
C
Cybersecurity and Infrastructure Security Agency CISA
Recent Announcements
Recent Announcements
大猫的无限游戏
大猫的无限游戏
aimingoo的专栏
aimingoo的专栏
Cyberwarzone
Cyberwarzone
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Hackread – Cybersecurity News, Data Breaches, AI and More

博客园 - 萝卜L

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)

其他参考