Close
dtSearch Text Retrieval Engine Programmer's Reference
Using the dtSearch Engine with C++ (Windows)

How to add the dtSearch Engine to a C++ project

The dtSearch Engine is a 32-bit or 64-bit DLL with an exported function-call interface. To use the dtSearch Engine to a C++ project, 

1. For a 32-bit project, add dten600.lib to the project. This will link in the dtSearch Engine DLL, dten600.dll. For a 64-bit project, add dtengine64.lib to the project to link in the 64-bit dtSearch Engine DLL, dtengine64.dll. 

2. Add dtsearch.cpp and dtsviewr.cpp to the project. These modules define constructors and other functions for interface structures used in the dtSearch Engine API. 

3. #include <dtsearch.h> in files that call the dtSearch Engine. 

4. Add the dtSearch Engine examples\cpp\include folder to your compiler's list of include folders, so the compiler will find dtSearch Engine header files. 

The C++ function-call interface consists of a series of API functions with names that begin "dtss" (such as dtssDoSearchJob) and structures used with those API functions, with names that begin "dts" (such as dtsSearchJob). 

Single-byte string values in the API are always encoded as UTF-8, so Unicode is supported. 

In addition to the basic C/C++ function-call interface, the dtSearch Engine includes a small class library to make the interface easier to work with. See C++ Support Classes for more information. This class library is not built into the dtSearch Engine DLL. Instead, it is provided in source code form as a set of C++ files you can include in your project.