奇尔卡特 "Cannot get ActiveX Interface"

Chilkat "Cannot get ActiveX Interface"

当我使用这个片段时:

Local $oTask = $oHttp.DownloadBdAsync("https://.............pl/..........", $oBinData)
ConsoleWrite($oHttp.LastErrorText)

我收到这个错误:

ChilkatLog:   
ActiveXError:
DllDate: Sep 28 2020
ChilkatVersion: 9.5.0.84
UnlockPrefix: ************
Architecture: Little Endian; 32-bit
Language: ActiveX
VerboseLogging: 0
Cannot get ActiveX Interface   
--ActiveXError
--ChilkatLog

为什么会出现此错误?

顺便说一句。

Local $iSuccess = $oHttp.DownloadBd("https://.............pl/..........", $oBinData)
ConsoleWrite($oHttp.LastErrorText)

工作正常

我不知道这是否正确,但在其他语言中,如果返回对象而不是原始值,则需要“Set”关键字。鉴于 Chilkat 异步方法 returns 一个 Chilkat 任务对象 (https://chilkatsoft.com/refdoc/xChilkatTaskRef.html) 也许这就是解决方案:

 Local $oTask
 Set $oTask = $oHttp.DownloadBdAsync("https://.............pl/..........", $oBinData)

这只是一个猜测...