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

SQL Anywhere 11.0.1 (日本語) » Ultra Light - 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. Ultra Light Pod ファイル (Windows および Windows Mobile の場合は 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\ にコピーします。

    すべてのアプリケーション・ファイルが配置されました。