title: IE web browser control res:// usage
body: <p>I'm using the IWebBrowser2 control in my app and I have various html files that are stored as resources in the exe. To load these up I use the "res://" protocol. The problem is that with certain versions of IE the pages no longer load up, and instead just shows "Action Canceled, Internet Explorer was unable to link to the page requested."</p>
  
  <p>The pages are referenced in the .rc script like so:</p>
  
  <p>stats.html              HTML    DISCARDABLE     "res\stats.html"</p>
  
  <p>The res request looks like
  res://C:\path\To\MyApp.exe/stats.html</p>
  
  <p>This used to work just fine, at some point this behavior changed, presumably with a hot fix or something like that. Now, on my machine, it doesn't work. I have tried altering the res path to look like:</p>
  
  <p>res://MyApp.exe/stats.html</p>
  
  <p>that didn't work.</p>
  
  <p>I then tried changing the rc script:</p>
  
  <p>stats              HTML    DISCARDABLE     "res\stats.html"</p>
  
  <p>and the res path:</p>
  
  <p>res://MyApp.exe/stats</p>
  
  <p>Now it works! However this is really annoying to have to use this way (removing the "." and file extension from the resource name). Does anyone know if this is a bug? A feature? Why does this happen and is there another way around this?</p>
  
  <p>Edit:
  After playing around some more I found this to work:
  stats.htm              HTML    DISCARDABLE     "res\stats.html"
  res://MyApp.exe/stats.htm</p>
  
  <p>changing the ".html" extension in the resource name to ".htm" works but I have no idea why! </p>