Product Home
DTM Data Generation SDK Online Documentation
Product Profile
SDK components
Functions map
Low level API
Short Random
Integer Random
Random Symbol
Double Random
Random String
Random Date
Random Time
C/C++ example
Fill Methods level API
From list
From file
From table
From Values Library
Incremental
By maks
By SQL statement
Rule level API
Rule properties
Rule items
One rule item
Project level API
Project operations
Project properties
Project rules
Object handles
Database connection
Error handling
SDK limitations
Build application with SDK
License agreement

How to build your program with Data Generation SDK

There are to ways to all data generation functionality to your script or program. The first way is direct import required functions from DLL. This way is suitable for C/C++ and, in some cases, for C#. The second way is to use COM object "DGSDK.DGLib". This way is suitable for scripting languages like VBA, JScript, etc. You should use it with Active Server Page technologies as well.

Visual C++
At first, you should use #include "dgsdkdefs.h" directive in your source file(s).
The SDK contains "dgsdk.lib" import library that compatible with all modern Visual C++ versions starting 6.0. You should specify it as a linker input.
Example: cl mysource.cpp dgcore.lib

C#
You can use DllImport to access required SDK functions located in "dgsdk.dll".
Example: csc mysource.cs

VBA
You could cerate "DGSDK.DGLib" object and use methods and properties to access SDK functionality.
Example:

   Set obj = CreateObject("DGSDK.DGLib")
   Debug.Print obj.DateRandom("DD/MM/YY", "01/01/80", "12/12/97")

Note: SDK contains command files (.cmd) that helps you build and run included examples by one click in case BIN directory of your C++ installation is included into PATH environment variable.

Important: you should place 'dgsdk.dll' and 'common.dll' (for Standard and Professional editions only) in the folder where your application is located.