问题
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