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