我正在使用 VBSedit 将一些 VBScripts 编译为.exe。该 exe 创建良好,并显示MsgBox
等。但是,一旦它击中使用库的部分并尝试 CreateObject 它停止工作。令人反感的是,我可以从 VBSedit / 运行脚本,因为我可以添加对库的引用。但我不知道如何编译可执行文件,所以它包含库。任何?
Sub Main()
Dim autECLConnMgr, autECLSession, sessionID, actCtx
Dim myScreenStr, libPath
'libPath = "C:\Program Files (x86)\IBM\Personal Communications\autcmgr.tlb"
'Set autECLConnMgr = GetObject(libPath)
'this does not work
Set autECLConnMgr = CreateObject("PCOMM.autECLConnMgr")
...
'below here where some tests but it breaks on the lines above
End Sub
我得到的错误消息是
ActiveX 组件无法创建对象。
本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处
评论列表(35条)