Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - C and C++ Programming » Developing UltraLite Applications for the Palm OS » Developing UltraLite applications with Metrowerks CodeWarrior

Installing the UltraLite plug-in for CodeWarrior Next Page

Creating UltraLite projects in CodeWarrior


To create an UltraLite project in CodeWarrior
  1. Start CodeWarrior.

  2. Create a new project:

    1. From the CodeWarrior menu, choose File > New. A tabbed dialog appears.

    2. On the Projects tab, choose Palm OS Application Stationery.

    3. Also on the Projects tab, choose a name and location for the project. Click OK.

  3. Choose an UltraLite stationery.

    The UltraLite plug-in adds the following choices to the stationery list:

    Choose the development model you want to use and click OK to create the project.

    The stationery is standard C stationery for embedded SQL, and standard C++ stationery for C++.

  4. If you are using embedded SQL, configure the settings in the UltraLite Preprocessor Panel for your project. If you are using C++ these settings are ignored.

    1. On your project window (.mcp), click the Settings icon on the toolbar. The Project Settings window opens.

    2. In the tree on the left pane, choose Target > UltraLite Preprocessor. Enter the settings for your project.

Preprocessing

When you build an embedded SQL project, the UltraLite plug-in calls sqlpp to preprocess .sqc files into .c/.cpp files and also converts ESQL statements to UltraLite function calls.

When building UltraLite Embedded SQL or C++ applications in the CodeWarrior environment, the plug-in does not add the access paths to install-dir\h and install-dir\ultralite\palm\68k\lib\cw\ and to the UltraLite libraries ulrt.lib and ulbase.lib. The plug-in only adds the generated files from running the SQL preprocessor to the CodeWarrior project for UltraLite Embedded SQL applications.