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

SAP Sybase SQL Anywhere 16.0 (中文) » MobiLink - 入门 » MobiLink 技术 » MobiLink 的 CustDB 示例 » CustDB 文件

 

UltraLite 远程数据库设置

以下示例为 CustDB 创建远程数据库。CustDB 远程数据库必须为 UltraLite 数据库。

远程数据库的应用程序逻辑位于 %SQLANYSAMP16%\UltraLite\CustDB 中。它包括以下文件:

  • 嵌入式 SQL 逻辑   文件 custdb.sqc 中包含在 UltraLite 数据库中查询和修改信息时所需的 SQL 语句,以及启动与统一数据库的同步时所需的调用。

  • C++ API 逻辑   文件 custdbcpp.cpp 包含 C++ API 逻辑。

  • 用户界面功能   这些功能分别存储在特定于平台的 Samples\UltraLite\CustDB 子目录中。

要将示例应用程序安装到运行 UltraLite 的远程设备上,请执行以下操作:

  1. 启动统一数据库。

  2. 启动 MobiLink 服务器。

  3. 将示例应用程序安装到客户端设备上,并启动示例应用程序。

  4. 同步示例应用程序。

 示例