Home > General > The “res” protocol!

The “res” protocol!

Did you know that you can display HTML files from your exe or dll in an HTML control or in a browser using the “res” protocol which means resource protocol. Here is a demo…

Displays a page from Google’s toolbar dll provided Google toolbar is installed on your computer in the given path. Paste these into your browser’s address bar. I tested this on internet explorer…

res://C:\Program Files\Google\GoogleToolbar1.dll/AUTOLINKINTRO.HTML
res://C:\Program Files\Google\GoogleToolbar1.dll/About.HTML
// I am sure you will have seen this in plenty ;)  

res://C:\WINDOWS\system32\shdoclc.dll/HTTP_GEN.HTM
res://C:\WINDOWS\system32\shdoclc.dll/HTTP_501.HTM
res://C:\WINDOWS\system32\shdoclc.dll/HTTP_500.HTM
res://C:\WINDOWS\system32\shdoclc.dll/HTTP_410.HTM  

...
etc

So now you know how this happens. See the letters in bold, HTTP is replaced by res.

Advertisements
Categories: General Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: