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. res: protocol and custom resources (PDF files)

res: protocol and custom resources (PDF files)

Scheduled Pinned Locked Moved C / C++ / MFC
htmlhelpquestionlearning
1 Posts 1 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.
  • H Offline
    H Offline
    Harold Bamford
    wrote on last edited by
    #1

    Greetings, I am embedding a .pdf file in my executable by using a custom resource ("PDF"). At runtime, I can extract this using the usual LoadResource() stuff and saving as a temp file and then running ShellExecute() on that file. This works, but leaves a temp file around. Not tidy. What would be nice is being able to do something like:

    ShellExecute(..., "res://program.exe/PDF/mypdffile.pdf", ...)
    

    Unfortunately, this doesn't seem to work (at least not on Win2000 using IE6). I get a message from IE saying the page couldn't be loaded. Doing something like:

    ShellExecute(..., "res://program.exe/myhtmfile.htm", ...)
    

    works as expected. Which would tend to prove that I've got the basic motions working OK. I saw a blurb on MSDN saying that the res: protocol didn't work properly for non-HTML resources, but the implication was that this was a bug in IE4. Any ideas on what I am doing wrong? 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