【发布时间】:2018-04-19 15:40:35
【问题描述】:
我正在尝试连接到一个打开的应用程序并向其中一个 DLL 函数发送命令。这是代码 - 错误发生在 GetObject 上。我究竟做错了什么?
Dim oOL
Dim lcCmd
lcCmd = "'QQWOMOD.TWOAuto', '100',False"
MsgBox lcCmd
On Error Resume Next
'The Next stmt is commented out, but gives the same error as the one that follows it
'Set oOL = GetObject("C:\Program Files (x86)\Component Control\Quantum Control\Quantum.exe", "Quantum.SysMod")
Set oOL = GetObject("Quantum.SysMod")
If oOL is Nothing Then
MsgBox "1- " + Err.Description
MsgBox "1- " + Err.number
End If
MsgBox ("2")
oOL.InspectWO(lcCmd)
MsgBox("3")
【问题讨论】:
标签: vbscript