Chilkat “Cannot get ActiveX Interface”

依然范特西╮ 提交于 2021-02-08 10:42:57

问题


When I use this snippets:

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

I get this error:

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

Why I get this error ?

btw.

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

Works fine


回答1:


I don't know if this is correct, but in other languages the "Set" keyword would be needed if an object is returned instead of a primitive value. Given that a Chilkat async method returns a Chilkat Task object (https://chilkatsoft.com/refdoc/xChilkatTaskRef.html) perhaps this is the solution:

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

This is just a guess...



来源:https://stackoverflow.com/questions/65484117/chilkat-cannot-get-activex-interface

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!