I am trying to add a new entry to the context menu of the Internet Explorer context menu. I understand that this can be achieved by creating an HTML file containing JavaScript, and then linking it to a location in the registry. I also read that you can also add HTML to the resource file and compile it into a DLL (see Microsoft KB: Adding Entries to the Standard Context Menu ). Here I began to run into problems.
Here is some information on what I have done so far.
- I have the following javascript in a file
C:\test.htm:
<script type="text/javascript">
alert('Hello, world!');
</script>
- I added a new value
REG_SZ 'c:\test.htm'to the registry in the following place:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt
IE, . , , . . script, DLL. , :
- Visual ++ VS 2005
'IETest' c:\IETest C:\test.htm app.rc . ID TEST- DLL
res:
IE , , . DLL , .
, - DLL. - ? DLL ?
.