Skip to navigation
Real World Computing

Easy shell extensions

Posted on 12 Sep 2002 at 16:37

Shell extensions are one of the more esoteric aspects of Windows programming. You're probably aware that Windows Explorer is very versatile and can support a number of types of shell extension or plug-in. Thanks to Microsoft's excessive (and, in my opinion, unwarranted) fondness for the COM object model, shell extensions have to be written as small COM servers - DLLs that need to be registered with the system before they can be used. Once that's done, Explorer will transparently call your extensions as required.

While you're developing a shell extension, you'll frequently need to unregister the extension, which is done using this command-line:
REGSVR32 /u IconHandlerDemo.dll
Once you've unregistered an extension, you can usually delete its DLL, but you'll sometimes find Delphi will complain that it's unable to create a new DLL because Windows Explorer still has it in use. On such occasions, it's necessary to 'pull the plug' on Windows Explorer, as previously described, before you can delete the existing DLL. However, these minor irritations aside, I think you'll agree that creating a shell extension in this way is infinitely easier than using Microsoft tools.
As a side benefit, high-quality shell controls such as the Shell Control Pack from Plasmatech (www.plasmatech.com) are fully compatible with Explorer's shell-extension technology, and you'll find that a registered shell extension works perfectly with these components. You can purchase version 1.1 of Shell+ for a remarkably cheap $80 (£54), all the more remarkable because full source code is included. Version 1.2 of the component set will be out soon and this will apparently include new components for implementing shell links, drag-and-drop operations and more. Highly recommended.

1 2 3 4
Subscribe to PC Pro magazine. We'll give you 3 issues for £1 plus a free gift - click here

From around the web

Be the first to comment this article

You need to Login or Register to comment.

(optional)

advertisement

Latest Real World Computing
Latest Blog Posts Subscribe to our RSS Feeds
Latest News Stories Subscribe to our RSS Feeds
Latest ReviewsSubscribe to our RSS Feeds

advertisement

Sponsored Links
 
SEARCH
SIGN UP

Your email:

Your password:

remember me

advertisement


Hitwise Top 10 Website 2010
 
 

PCPro-Computing in the Real World Printed from www.pcpro.co.uk

Register to receive our regular email newsletter at http://www.pcpro.co.uk/registration.

The newsletter contains links to our latest PC news, product reviews, features and how-to guides, plus special offers and competitions.