Home > database >  InternetReadFile handle can be, but the function call
InternetReadFile handle can be, but the function call

Time:09-23

InternetOpen, InternetOpenUrl used, returns the value of the long, but with InternetReadFile function call is not
InternetReadFile (ll_hFile sbuffer, 1024, ret) ret value, do not know why? Please specify which player, I appreciate the younger brother in this
I am used to download files. Don't want to use the FTP mode,

CodePudding user response:

Did this in front of the
Sbuffer=blob (space (1024))
?

CodePudding user response:

No, thank you for reminding me, this has a relationship?

CodePudding user response:

And character type sbuffer, blob can't use, after the bufffer InternetReadFile the inside of the string is a string type,
Please be more detailed notes of the problem, thank you.

CodePudding user response:

The function long URLDownloadToFile (long pCaller, string szURL, string szFilename, long dwReserved, long lpfnCB) library "urlmon.dll" alias for "URLDownloadToFileA; ANSI
"

Use this function?

URLDownloadToFile (0, ls_url, ls_local_file_path, 0, 0)

CodePudding user response:

The dynamic library is Microsoft's own? Like a bad to use,

CodePudding user response:

Master, you can call, this method is very good,
  • Related