TCHAR File[MAX_PATH];
HRESULT hr = URLDownloadToCacheFile(NULL, "www.google.com",File, MAX_PATH,BINDF_GETNEWESTVERSION, NULL);
printf("\n file name ->%s\n %d ",File,sizeof(File));
it's not working could anyone tell where i am wrong
TCHAR File[MAX_PATH];
HRESULT hr = URLDownloadToCacheFile(NULL, "www.google.com",File, MAX_PATH,BINDF_GETNEWESTVERSION, NULL);
printf("\n file name ->%s\n %d ",File,sizeof(File));
it's not working could anyone tell where i am wrong
dwReserved
Reserved. Must be set to 0.
Remove the BINDF_ flag and set the parameter to zero.
Not sure if thats the reason though. You get a returnvalue.
Check your helpfile how to evaluate that.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.