Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Examples

There are some small example programs for demonstrating how to use the SQLDBC SDK and building applications.

Some are written in C++ like HelloWorld.cpp. Other once are written in native C like HelloWorld_C.c.

The example programs HelloWorld.cpp and HelloWorld_C.c shows the following:

  1. How to connect to the database
  2. Execute a simple SQL statement
  3. Retrieving the result from a query

Other example programs for UNICODE etc. are exists. You will find all files neccessary to build the examples here.
Unpack this archive to any folder you want or use the demo sources, if you have an full installation, in your examples directory under <indep_prog>/samples/SQLDBC .

Building the example program
All of the examples can build at the same way. We like to describe the way for building the HelloWorld example.

MS Windows (32 and 64 Bit)

UNIX

Testing the example program