Thread: URLDownloadToCacheFile not working

  1. #1
    Registered User rohit's Avatar
    Join Date
    Feb 2002
    Posts
    69

    URLDownloadToCacheFile not working

    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

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function not working
    By sloopy in forum C Programming
    Replies: 31
    Last Post: 11-12-2005, 08:08 PM
  2. Program Not working Right
    By raven420smoke in forum C++ Programming
    Replies: 2
    Last Post: 09-16-2005, 03:21 AM
  3. Trying to eject D drive using code, but not working... :(
    By snowfrog in forum C++ Programming
    Replies: 3
    Last Post: 05-07-2005, 07:47 PM
  4. x on upper right corner not working
    By caduardo21 in forum Windows Programming
    Replies: 1
    Last Post: 02-20-2005, 08:35 PM
  5. cygwin -> unix , my code not working properly ;(
    By CyC|OpS in forum C Programming
    Replies: 4
    Last Post: 05-18-2002, 04:08 AM