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. Embedded HTML pages + images

Embedded HTML pages + images

Scheduled Pinned Locked Moved C / C++ / MFC
htmlhardwarequestionlearning
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.
  • T Offline
    T Offline
    Tommy2k
    wrote on last edited by
    #1

    In my project, i use a party HTML GUI. I included the pages as resources in the exe. I then let the HTML window navigate to res://NameOfApp.exe/305 . This works correctly. However, if i want to include an image (gif image sequence in my case), i can't get it done this way because there's no way to tell IE that the file i feed it is a GIF file , because it doesn't have an extension and there's no way i can use an extension for the file because it's a resource. Is there a way in HTML to tell the browser that the file is in fact a GIF file?

    M 1 Reply Last reply
    0
    • T Tommy2k

      In my project, i use a party HTML GUI. I included the pages as resources in the exe. I then let the HTML window navigate to res://NameOfApp.exe/305 . This works correctly. However, if i want to include an image (gif image sequence in my case), i can't get it done this way because there's no way to tell IE that the file i feed it is a GIF file , because it doesn't have an extension and there's no way i can use an extension for the file because it's a resource. Is there a way in HTML to tell the browser that the file is in fact a GIF file?

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

      Give it a string name instead of a numeric ID. That way you can navigate to res://NameOfApp.exe/MYFILE.GIF --Mike-- "Big handwavy generalizations made from a position of deep ignorance is one of the biggest wastes of time on the net today. -- Joel Spolsky Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber

      T 1 Reply Last reply
      0
      • M Michael Dunn

        Give it a string name instead of a numeric ID. That way you can navigate to res://NameOfApp.exe/MYFILE.GIF --Mike-- "Big handwavy generalizations made from a position of deep ignorance is one of the biggest wastes of time on the net today. -- Joel Spolsky Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber

        T Offline
        T Offline
        Tommy2k
        wrote on last edited by
        #3

        Still can't get this right....the res:// thingy only works for HTML pages and not for any image type :-(. What am I doing wrong? Showing you the code isn't really usefull because there isn't much to show...

        M 1 Reply Last reply
        0
        • T Tommy2k

          Still can't get this right....the res:// thingy only works for HTML pages and not for any image type :-(. What am I doing wrong? Showing you the code isn't really usefull because there isn't much to show...

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

          I inserted a JPG HTML resource in a DLL, and I can show that picture in IE with this URL: res://C:\utils\dirclean.dll/ALY.JPG I found the right combo of slashes and backslashes thru trial-and-error ;) --Mike-- "Big handwavy generalizations made from a position of deep ignorance is one of the biggest wastes of time on the net today. -- Joel Spolsky Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber

          T 1 Reply Last reply
          0
          • M Michael Dunn

            I inserted a JPG HTML resource in a DLL, and I can show that picture in IE with this URL: res://C:\utils\dirclean.dll/ALY.JPG I found the right combo of slashes and backslashes thru trial-and-error ;) --Mike-- "Big handwavy generalizations made from a position of deep ignorance is one of the biggest wastes of time on the net today. -- Joel Spolsky Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber

            T Offline
            T Offline
            Tommy2k
            wrote on last edited by
            #5

            I used the exact same combo already but it just doesnt't work. Maybe it's the point that I use an exe instead of a DLL. You think that's what's wrong? If that's what i need to do (Use a DLL) then could you maybe give me a link to a project that uses resource DLL's in different languages (Like MSN messenger)? Thanks for your awnser :-)

            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