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

SQL Anywhere 11.0.1 (中文) » UltraLite - M-Business Anywhere 编程 » 教程:M-Business Anywhere 示例应用程序

 

第 2 课:创建应用程序文件

本课介绍如何建立应用程序文件。

♦  创建应用程序文件
  1. 创建文件 c:\tutorial\main.htm

    在本教程后面的内容中,将向 main.htm 添加更多逻辑。目前,您只需设置此文件,以包括一个特定于平台的文件 ul_deps.html

    将以下内容添加到 main.htm

    <html>
    <body>
    <a href="AG_DEVICEOS/ul_deps.html"></a>
    </body>
    </html>
  2. 创建特定于平台的文件 ul_deps.html

    此文件为不同的操作系统引用特定的二进制,如下所示:

    • Windows   c:\tutorial\WIN32_OS\ul-deps.htm
      <!-- WIN32_OS\ul_deps.html -->
      <html>
        <a href="ulpod11.dll"></a>
        <a href="tutCustomer.udb"></a>
      </html>

    • Windows Mobile   c:\tutorial\WINCE_OS\ul-deps.htm
      <!-- WINCE_OS\ul_deps.html -->
      <html>
        <a href="AG_DEVICEPROCESSOR/ulpod11.dll"></a>
        <a href="tutCustomer.udb"></a>
      </html>

    • Palm   c:\tutorial\PALM_OS\ul-deps.htm
      <!-- PALM_OS\ul_deps.html -->
      <html>
        <a href="ulpod11.prc"></a>
        <a href="tutCustomer.pdb"></a>
      </html>

  3. 对于 Windows 和 Windows Mobile 将 UltraLite Pod 文件 ulpod11.dll,或者对于 Palm 将 .prc 复制到 tutorial 目录。

    • 对于 Windows 桌面操作系统,将 ulpod11.dllinstall-dir\UltraLite\UltraLiteForMBusinessAnywhere\win32\386 复制到 c:\tutorial\WIN32_OS\

    • 对于 Windows Mobile,将 ulpod11.dllinstall-dir\UltraLite\UltraLiteForMBusinessAnywhere\CE\Arm 复制到 c:\tutorial\WINCE_OS\arm\

    • 对于 Palm OS,将 ulpod11.prcinstall-dir\UltraLite\UltraLiteForMBusinessAnywhere\Palm\68k 复制到 c:\tutorial\PALM_OS\

    现在已将所有应用程序文件放在适当位置。