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 - M-Business Anywhere Programming » Tutorial: A Sample Application for M-Business Anywhere

Lesson 1: Create project architecture Next Page

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 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="ulpod10.prc"></a>
      <a href="tutCustomer.pdb"></a>
    </html>
    <!-- WINCE_OS\ul_deps.html -->
    <html>
      <a href="AG_DEVICEPROCESSOR/ulpod10.dll"></a>
      <a href="tutCustomer.udb"></a>
    </html>
    <!-- WIN32_OS\ul_deps.html -->
    <html>
      <a href="ulpod10.dll"></a>
      <a href="tutCustomer.udb"></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 be in the proper location relative to the tutorial directory. The database file is already in place from earlier in the tutorial. You must now copy the UltraLite runtime library into place.

    All application files are now in place.