UltraLite User's Guide
Tutorial: Build an Application Using the C++ API
In this tutorial, you will be creating a set of files, including source files and executable files. You should make a directory to hold these files. In addition, you should make a copy of the UltraLite sample database so that you can work on it, and be sure you still have the original sample database for other projects.
Copies of the files used in this tutorial can be found in the Samples\UltraLite\APITutorial subdirectory of your SQL Anywhere directory.
To prepare a tutorial directory
Create a directory to hold the files you will create. In the remainder of the tutorial, we assume that this directory is c:\APITutorial.
To copy the sample database
Make a backup copy of the UltraLite 9.0 Sample database into the tutorial directory. The UltraLite 9.0 Sample database is the file custdb.db, in the Samples\UltraLite\CustDB subdirectory of your SQL Anywhere installation directory. In this tutorial, we use the original UltraLite 9.0 Sample database, and at the end of the tutorial you can copy the untouched version from the APITutorial directory back into place.