|
-
Oct 24th, 2019, 06:40 AM
#1
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
-
Oct 24th, 2019, 06:54 AM
#2
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
-
Jan 14th, 2020, 07:03 PM
#3
Fanatic Member
Re: DeleteUrlCacheEntry(filename) not working in windows 10
I'm having the same problem WestConn. What did you find out about this?
-
Jan 15th, 2020, 02:03 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|