Shell Folders Unit
Demo Program ReadMe

Introduction

This project is provided with the DelphiDabbler Shell Folders Unit to demonstrate how to use some of the code in the unit.

The project requires Delphi 7 as a minimum and should compile on all later compilers. Both 32 bit and 64 bit Windows targets are supported when compiling with Delphi XE2 or later. The project has been tested with Delphi 7, 2006, 2007, 2009, 2010, XE, XE2, XE3 and XE4.

Installing the Demo Project

The demo project is provided in the same zip file as the Shell Folders Unit.

The Shell Folder components must be installed before trying to compile this demo. If compiling for a 64 bit Windows target ensure that the components have been built into a 64 bit package.

Copy the code from the Demo sub-folder of the zip file to some suitable location on your hard drive then open the ShellFolderDemo.dpr project in Delphi. If the compiler can't find the component's .dcu file place the directory where you installed the components on your compiler's search path.

By default the demo compiles as a 32 bit Windows application. When using Delphi XE2 or later you can compile the project as a 64 bit Windows application simply by using the IDE to add a 64 bit target to the project and recompiling.

Overview

The program exercises much of the main code in PJShellFolders.pas. On starting the program displays information about each of the supported special shell folders in the main part of the window. This information is:

Below the main display are several controls:

Source Code

The main purpose of this demo is to provide source code that shows how to use the various classes and components from the PJShellFolders unit. The code of ShellFolderDemoForm.pas illustrates the following:

You should run the program and examine the source code to get an idea about how to use the PJShellFolders unit.

Please let me know if you have any comments about the component, but please use the Issue Tracker to report bugs and request new features.