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

SQL Anywhere 12.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.html
      <!-- WIN32_OS\ul_deps.html -->
      <html>
        <a href="ulpod12.dll"></a>
        <a href="tutorial.udb"></a>
      </html>

    • Windows Mobile   c:\tutorial\WIN32_CE\ul_deps.html
      <!-- WIN32_CE\ul_deps.html -->
      <html>
        <a href="AG_DEVICEPROCESSOR/ulpod12.dll"></a>
        <a href="tutorial.udb"></a>
      </html>

  3. 对于 Windows 和 Windows Mobile,将 UltraLite Pod 文件 ulpod12.dll 复制到 tutorial 目录。

    • 对于 Windows 桌面操作系统,将 ulpod12.dll%SQLANY12%\UltraLite\UltraLiteForMBusinessAnywhere\win32\386 复制到 c:\tutorial\WIN32_OS\

    • 对于 Windows Mobile,将 ulpod12.dll%SQLANY12%\UltraLite\UltraLiteForMBusinessAnywhere\CE\Arm 复制到 c:\tutorial\WIN32_CE\arm\

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