Installation and usage
-
User mode API is available for use with various development tools and platforms:
-
.NET assemblies
.NET assemblies are available as a managed interface to the driver. The assemblies are shipped for 32-bit and 64-bit versions of Windows.
Each assembly includes one file, RawDiskNet.dll. It is located in the platform-specific subfolder of "<RawDisk>\dotNET" folder.RawDisk class can't be installed to Toolbox as it doesn't contain any instance methods. All of it's methods are class methods.
To use RawDisk in your project, you need to include RawDisk assembly to the list of project references. Then, in source file, add the following line:
- C#:
using RawDiskNet; - VB.NET:
imports RawDiskNet; - C++:
#using <RawDiskNet.dll>
- C#:
-
Windows VCL units
To use RawDisk in your VCL applications, just reference RawDisk.dcu unit in your code.
To avoid problems with compilation of projects, which use RawDisk, you need to setup paths as described. By default the paths are set during installation. However if the settings were changed or installation didn't work as expected, you can use the below procedure to setup paths.- Delphi:
Before using RawDisk in your projects, you need to tune-up global paths in Delphi IDE. Paths are set in Main menu->Tools->Environment options. Environment Options dialog appears. Find Library or Directories tab in the page control and you will find directories configuration page.- Set the "output directory", "unit output directory" and "BPL output directory" (if present) settings for the package to the folder, where the compiled packages will be stored after compilation.
- add the name of the folder with RawDisk.dcu (<RawDisk>\VCL\Units\DelphiX) to the "source path" setting.
To use RawDisk in your projects, you need to add "RawDisk" to Uses clause of one or more of your units. Then you can create RawDisk objects and use them. You don't need to ship any external DLLs with your compiled project.
- C++Builder:
Before using RawDisk in your projects, you need to tune-up global paths in your development tool. Paths are set in Main menu->Tools->Environment options. Environment Options dialog appears. Find Library or Directories tab in the page control and you will find directories configuration page.- Set the "output directory", "unit output directory" and "BPL output directory" (if present) settings for the package to the folder, where the compiled packages will be stored after compilation.
- add the name of the folder with RawDisk.obj and RawDisk.dcu (<RawDisk>\VCL\Units\BuilderX) to the "include path" and "library path" settings.
To use RawDisk in your projects, you need to include "RawDisk.h" (header file) to one or more of your files. Also, you need to add RawDisk.lib to the list of used libraries. You don't need to ship any external DLLs with your compiled project.
- Delphi:
- Windows Lib package
Use the library files located in <RawDisk>\CPP\VC6 folder for Visual Studio 6, <RawDisk>\CPP\VS2003 folder for Visual Studio .NET 2003 and <RawDisk>\CPP\VS2005 folder for Visual Studio 2005.
