|
To once the installer has installed VSTools open BDS 2006 and create
a new C++ VCL project. Once the main form is displayed VSTools
components will appear in the Tool Pallette. It is now possible
to drag a component to the form and work with it at design time.
When you try to compile the project BDS2006 will show a dialog asking
for the location of the VirtualTrees.h
file. Navigate to the ${VT_Install}\Source folder and select
it. Then it will ask for the VirtualExplorerTree.h
again navigate to the $(VSTools_Install}\Source folder and select
it. BDS will then make the necessary changes to the current
project to compile the source.
Apparently this is by design and will need to be done for every
project that uses VT and/or VSTools.
Next you have to use the conditional define through the
Project > Options > Paths and Defines
menu. Here add the following define:
NO_WIN32_LEAN_AND_MEAN

If you do not respond to the first dialogs correctly this is how to
manually make the changes to compile the project:
1) Likely the IDE has added
#include "VirtualTrees.h"
#include "VirtualExplorerTree.h"
to the source file. This needs to be changed to
#include "VirtualTrees.hpp"
#include "VirtualExplorerTree.hpp"
2) You will need to go to
Project > Options > Paths and Defines
and add the path to the VSTools (and VirtualTreeview) source.
${VSTools}\Source
This adds the path to the *.hpp files to the project. This
will need to be repeated for every project that uses VitualShellTools
and VirtualTreeview
|