Embedded HTML pages + images
-
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?
-
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?
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 -
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 -
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...
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 -
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 | 1ClickPicGrabberI 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 :-)