IE Toolbar or BHO Images and Temp Folder Location
-
I am posting this question in both the C# and C++ boards as I think the solution may be the same in both the cases. I have an IE toolbar which gets hold of the IWebBrowser. I then imlplement the event DocumentComplete. In the event I get hold of the Document as a IHTMLDocument. now here is my question. For an image in the Document, how do I get to know the exact path of that image in my temporary Internet files? If I get the images list, then for each element in the collection I can get the src property but that gives me the url not the location in the temp internet files. I know the file may not exist in the temp folder, but if it did, is there a way to get the path? Thanks,
-
I am posting this question in both the C# and C++ boards as I think the solution may be the same in both the cases. I have an IE toolbar which gets hold of the IWebBrowser. I then imlplement the event DocumentComplete. In the event I get hold of the Document as a IHTMLDocument. now here is my question. For an image in the Document, how do I get to know the exact path of that image in my temporary Internet files? If I get the images list, then for each element in the collection I can get the src property but that gives me the url not the location in the temp internet files. I know the file may not exist in the temp folder, but if it did, is there a way to get the path? Thanks,
RetrieveUrlCacheEntryFile()
fills in aINTERNET_CACHE_ENTRY_INFO
struct if the URL is cached. ThelpszLocalFileName
member of the struct is the full path to the file in the cache.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer
-
RetrieveUrlCacheEntryFile()
fills in aINTERNET_CACHE_ENTRY_INFO
struct if the URL is cached. ThelpszLocalFileName
member of the struct is the full path to the file in the cache.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer
Thanks. Of course, given my luck, it couldnt be a simple AxWebBrowser method :-)
-
Thanks. Of course, given my luck, it couldnt be a simple AxWebBrowser method :-)
It's a WinInet function, not an IE function. Sorry ;)
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer
-
It's a WinInet function, not an IE function. Sorry ;)
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer
I know. Just my luck. however, had I known that when I started my search I would have found this: http://www.codeproject.com/csharp/WebCacheTool.asp[^] Hopefully this will act as a reference to anyone else. Of course now I am finding plenty of wininet functions that can be used. I had that strange feeling in my gut that I should have done this toolbar in C++. Too late now :-) Thanks.