Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. IE Toolbar or BHO Images and Temp Folder Location

IE Toolbar or BHO Images and Temp Folder Location

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpc++
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ranjan Banerji
    wrote on last edited by
    #1

    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,

    M 1 Reply Last reply
    0
    • R Ranjan Banerji

      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,

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      RetrieveUrlCacheEntryFile() fills in a INTERNET_CACHE_ENTRY_INFO struct if the URL is cached. The lpszLocalFileName 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

      R 1 Reply Last reply
      0
      • M Michael Dunn

        RetrieveUrlCacheEntryFile() fills in a INTERNET_CACHE_ENTRY_INFO struct if the URL is cached. The lpszLocalFileName 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

        R Offline
        R Offline
        Ranjan Banerji
        wrote on last edited by
        #3

        Thanks. Of course, given my luck, it couldnt be a simple AxWebBrowser method :-)

        M 1 Reply Last reply
        0
        • R Ranjan Banerji

          Thanks. Of course, given my luck, it couldnt be a simple AxWebBrowser method :-)

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          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

          R 1 Reply Last reply
          0
          • M Michael Dunn

            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

            R Offline
            R Offline
            Ranjan Banerji
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups