UltraLite for M-Business Anywhere User's Guide
Tutorial: A Sample Application for M-Business Anywhere
The following procedure uses the form to create a user interface. This example uses text boxes for input and output.
Create the application files
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>
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>
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.
For the Palm OS, copy ulpod9.prc from UltraLite\UltraLiteForMBusinessAnywhere\palm\68k to c:\Tutorial\mbus\PALM_OS.
For Windows CE, copy ulpod9.dll from UltraLite\UltraLiteForMBusinessAnywhere\ce\arm to c:\Tutorial\mbus\WINCE_OS\arm.
For Windows CP, copy ulpod9.dll from UltraLite\UltraLiteForMBusinessAnywhere\win32\386 to c:\Tutorial\mbus\WIN32_OS.
All application files are now in place.
SQL Anywhere Studio 9.0.2
版权所有 © 1989–2005 Sybase, Inc. 部分版权所有 © 2001–2005 iAnywhere Solutions, Inc. 保留所有权利。