Collection Contents 上一页 下一页 PDF

UltraLite for M-Business Anywhere User's Guide

Tutorial: A Sample Application for M-Business Anywhere

Lesson 2: Create the application files


The following procedure uses the form to create a user interface. This example uses text boxes for input and output.

Create the application files

  1. Create the file c:\Tutorial\mbus\main.html.

    This file will be the main file of the application. Later in the tutorial, you will add content to the file. For now, you just set it up to include a platform-specific file ul_deps.html. Add the following content to the file:

    <html>
    <body>
    <a href="AG_DEVICEOS/ul_deps.html"></a>
    </body>
    </html>
  2. Create the platform-specific files.

    Each of these files references the appropriate UltraLite runtime library and database schema file. Create a file ul_deps.html in each of the operating system subdirectories of your tutorial directory, as follows:

    <!-- PALM_OS\ul_deps.html -->
    <html>
      <a href="ulpod9.prc"></a>
      <a href="tutCustomer.pdb"></a>
    </html>
    <!-- WINCE_OS\ul_deps.html -->
    <html>
      <a href="AG_DEVICEPROCESSOR/ulpod9.dll"></a>
      <a href="tutCustomer.usm"></a>
    </html>
    <!-- WIN32_OS\ul_deps.html -->
    <html>
      <a href="ulpod9.dll"></a>
      <a href="tutCustomer.usm"></a>
    </html>
  3. Copy the UltraLite runtime files to the tutorial directory.

    The ul_deps.html files require that the UltraLite runtime library and database schema be in the proper location relative to the tutorial directory. The schema file is already in place from earlier in the tutorial. You must now copy the UltraLite runtime library into place.

    In the following instructions, paths for the source files are relative to your SQL Anywhere installation.

    All application files are now in place.


Collection Contents 上一页 下一页 PDF