Contents Index Choosing how to link the runtime library Storing persistent data

UltraLite Embedded SQL User's Guide
  Developing UltraLite Applications for Windows CE

Building the CustDB sample application


CustDB is a simple sales-status application. It is located in the UltraLite samples directory of your Adaptive Server Anywhere installation. Generic files are located in the CustDB directory. Files specific to Windows CE are located in the ce subdirectory of CustDB.

The CustDB application is provided as an eMbedded Visual C++ 3.0 project.

For a diagram of the sample database schema, see The UltraLite sample database.

To build the CustDB sample application

  1. Start eMbedded Visual C++.

  2. Open the project file that corresponds to your version of eMbedded Visual C++:

  3. Choose Build > Set Active Platform to set the target platform.

  4. Choose Build->Set Active Configuration to select the configuration.

  5. If you are building CustDB for the Pocket PC x86em emulator platform only:

  6. Build the application:

  7. Start the synchronization server:

  8. Run the CustDB application:

    Press Ctrl+F5 or select Build > Execute CustDB.exe

Folder locations and environment variables 
The sample project uses environment variables wherever possible. It may be necessary to adjust the project in order for the application to build properly. If you experience problems, try searching for missing files in the MS VC++ folder and adding the appropriate directory settings.

The build process uses the SQL preprocessor, sqlpp, to preprocess the file CustDB.sqc into the file CustDB.c. This one-step process is useful in smaller UltraLite applications where all the embedded SQL can be confined to one source module. In larger UltraLite applications, you need to use multiple sqlpp invocations followed by one ulgen command to create the customized remote database.

For more information, see Pre-processing your embedded SQL files.


Contents Index Choosing how to link the runtime library Storing persistent data