How to use Shell Extensions class from Eduardo Morcillo



I was looking for the easiest way to add an item to explorer's right click menus, and I found what looks to be a
goldmine.
There is a vb.net project available on:
http://www.mvps.org/emorcillo/en/code/shell/shellextensions.shtml

that encapsulates the ugly stuff and gives an easy way to make the dll explorer will look for as the extension handler.
Only problem is, I don't see how it "runs". All the other progs to do shell extensions are exe's, they run and set up
registry entries to get explorer informed that the handler (dll) is to be run whan a given file extension is
right-clicked.

the website says "The code includes a library with base classes from which the extensions classes inherits. The base
classes contains the code to register the extensions automatically (with the help of two custom attributes) when the
extension library is registered for COM"

then says:
ExtensionFileTypesAttribute
This attribute is used to set the file types for which an extension has to be registered. To register a extension for
several file types, separate the file types with a comma:

<ExtensionFileTypes("mp3file,avifile,soundrec,mpegfile")>

I know how to register a dll, but have never done so with attributes. Can anyone make sense of how to get things set up
once I make the project?

I keep wondering if someone has written a prog that allows you to add right click options, and specify what to do with
the files with a command line operation. Its easy to write a prog that takes command line params, but hooking it up so
explorer feeds it the filenames is quite the process it seems.
.



Relevant Pages

  • Re: Designer of the Commodore Datassette?
    ... The year of expiration is 2082. ... extension rules in Section 304. ... require-ments that the Register of Copyrights shall prescribe by regulation. ... Termination of Transfers and Licenses Covering Extended Renewal Term.-In ...
    (comp.sys.cbm)
  • Re: GPO Software install
    ... The .msi contains a list of extensions that are registered in Active ... You don't "register" extensions ... > Thank you Mike, however, i am a little confused, how do you register an ... > extension with an .msi. ...
    (microsoft.public.win2000.active_directory)
  • Re: general opcode question
    ... Christian Christmann wrote: ... > I'm a newbie to assembler and have a basic question on opcodes. ... First, the four bit register field encodes the register number, ... extension is simply the extension of the sign bit to the left when ...
    (comp.lang.asm.x86)
  • Re: want my own extention like http://www.myserver.com/default.prt
    ... webserver (most likely IIS). ... The idea is that you would register your ... new extension in IIS, and have it assign the ISAPI trunk to point to ... I want to create my own extenstion like .aspx, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: unable to click hyperlink URL to open browser
    ... The registry fix should have created the entry for you (for Internet Shortcut etc). ... In Windows Explorer / tools / folder options / registered file types ... I CANNOT find or any other URL extension ... URL: hypertext transfer protocol ...
    (microsoft.public.windowsxp.general)