c++ - URLDownloadToFile QtCreator file not downloading -


my issue today involve usage of urldownloadtofile() qtcreator. use following code download:

hresult hrez = urldownloadtofile(null, text(url), text("c:\\image.png"), 0, null); if (hrez != s_ok) {     return false; } 

the code run no errors file ins't downloaded. i've been searching through many solutions issue none have been relevant not successful. have done wrong?

well the documentation states:

szfilename:   pointer string value containing name or full path of file create download.    if szfilename includes path, target directory must exist. 

so assume parameter needs include not path filename well. instance

hresult hrez = urldownloadtofile(null, text(url), text("c:\\downl.tmp"), 0, null); 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -