ActiveX 组件无法使用 IBM PCOMM 14.0 HACL Automation 创建对象:“PCOMM.autECLPS”

问题描述 投票:0回答:1

尝试通过 Visual Studio Code IDE 使用 VBScript 中的主机访问类库自动化对象以编程方式自动化 IBM PCOMM v 14.0:

Option Explicit
Dim autECLPSObj 
Dim autECLConnList
Dim autECLOIAObj

Dim PSText

Set autECLPSObj = CreateObject("PCOMM.autECLPS")
Set autECLConnList = CreateObject("PCOMM.autECLConnList")
Set autECLOIAObj = CreateObject("PCOMM.autECLOIA")

' Refresh must be called to get latest connection info
autECLConnList.Refresh
' Initialize the connection with the first in the list
autECLPSObj.SetConnectionByHandle (autECLConnList(1).Handle)
' Initialize the connection with Session Name
autECLOIAObj.SetConnectionByName ("A")

        autECLPSObj.SendKeys "PCOMM API’s are very Powerful", 3, 1
        'autECLPSObj.SendKeys “[Enter]”
        'PSText = GetText(1, 1, 10)
        'autECLPSObj.SetCursorPos 2, 1
        autECLOIAObj.WaitForInputReady (10000)
    Set autECLPSObj = Nothing
    Set autECLConnList = Nothing
    Set autECLOIAObj = Nothing

出现以下错误:Microsoft VBScript 运行时错误:ActiveX 组件无法创建对象:'PCOMM.autECLPS'

PCOMM 文档 表示自动化只能使用 64 位版本的 MS Office。

我当前安装的版本是:

  1. Office 版本是“Microsoft 365 MSO 64 位”
  2. Windows 操作系统:Windows 10 企业版(64 位)
  3. IBM 个人通信 (PCOMM) 版本 14.0

澄清:

  1. 上述错误是否是由于位不兼容造成的?根据产品自述文件文件,我认为PCOMM 14.0是64位版本
  2. 如何判断安装的是64位还是32位PCOMM?
  3. 我不清楚Office版本和Windows操作系统是否应该降级到32位版本?
vbscript com ibm-pcomm
1个回答
0
投票

PCOMM 也应该是 64 位版本。您可以通过单击“帮助”>“关于个人通信”(在菜单上)找到它。 (需要将宏文件保存在C盘。)office和PCOMM位版本应该相同。

© www.soinside.com 2019 - 2024. All rights reserved.