Adding Customised Context Menu items

Archives Forums/Win32 Discussion/Adding Customised Context Menu items

_PJ_(Posted 2011) [#1]
I am trying to get my program to amend the registry keys for image files, basically so that a comandline can be sent to open my program with the filepath of the image as the commandline parameter.

I've tried using a fwew 'tutorials' on the web, such as :
http://www.ghacks.net/2006/07/21/how-to-create-new-context-menu-options/

but they cdon't seem to work - either the name appears incorrectly (if at all) on the context men, or I get an error suggesting that no file associations exist for that action.

As an example, I would like the context menu for, say, bmp, jpg and png images to have an entry for "Import With DC Tool" and on-clicking this menu item , the file woukld be loaded with (for the sake of argument, let's say: %PROGRAMFILES%\"DC Tool.exe" the commandline parameter would be (for example) Chr(34)+{completefilepath}\myimage.bmp"+chr(34)



Can anyone help with a real "idiots guide" ?

Also, it's not essential, but if there's a means to link the application reference to its CLSID rather than specifying a definite path, this would truly help.

Thanks :)