Results 1 to 4 of 4

Thread: DeleteUrlCacheEntry(filename) not working in windows 10

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    DeleteUrlCacheEntry(filename) not working in windows 10

    a program that was written some years ago in an xp machine and updated to windows 10 64 bit

    Code:
    ret = DeleteUrlCacheEntry(filename)
    Set wb = CreateObject("internetexplorer.application")
    If Not wb Is Nothing Then wlog "Internet Explorer created,"
    wb.navigate2 (filename)
    ret returns 0
    getlastdllerror returns 2

    i have cleared cache entries in internet explorer, but the file version loaded is not the current file but an old copy

    any suggestions, or fixes?
    is this likely to be a 64 bit API problem, or some change to the internet cache?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: DeleteUrlCacheEntry(filename) not working in windows 10

    i think i found it, looks like they updated the website to https, so while the url redirected, the cache entry did not match

    i will do further testing
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3
    Fanatic Member
    Join Date
    Aug 2011
    Location
    Palm Coast, FL
    Posts
    762

    Re: DeleteUrlCacheEntry(filename) not working in windows 10

    I'm having the same problem WestConn. What did you find out about this?

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: DeleteUrlCacheEntry(filename) not working in windows 10

    i changed the http address to https in all cases, no problems since then, as far as i know
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width