PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Martin Francom on November 07, 2011, 10:07:58 PM

Title: Compiler problem with API Function URLDownloadToFile
Post by: Martin Francom on November 07, 2011, 10:07:58 PM

   I am converting a very simple FF31/PB9 program that used the WinAPI and would
compile just fine using FF31/PB9/WinAPI   But when I compile using FF35/PB10/JoseAPI
I get the following compile error.  See screen print:

   Any suggestion?   I have attached the project file.
Title: Re: Compiler problem with API Function URLDownloadToFile
Post by: José Roca on November 07, 2011, 11:40:38 PM
Use


If UrlDownloadToFile(NOTHING, URLPath, LocalPath, 0, NOTHING) = 0 Then


The one in the PB include files is wrongly declared because they don't have support for low-level COM interfaces.
Title: Re: Compiler problem with API Function URLDownloadToFile
Post by: Jim Dunn on December 06, 2011, 12:42:25 PM
"NOTHING"

Couldn't remember how to get URLDOWNLOADTOFILE working, appreciate this post!!  : )