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 (中文) » UltraLite - C 和 C++ 编程 » 应用程序开发 » Windows Mobile 的 UltraLite 应用程序开发 » CustDB 示例应用程序

 

构建 CustDB 示例应用程序

构建 CustDB 示例应用程序以了解应用程序与 UltraLite 数据库的连接方式。

前提条件

执行此任务没有前提条件。

 任务
  1. 启动 Visual Studio。

  2. 打开位于 %SQLANYSAMP16%\UltraLite\CustDB 目录下的项目文件。

  3. 单击 [Build] » [Set Configuration Manager] 来设置目标平台。

    按照您的需要设置活动解决方案平台。

  4. 构建该应用程序:

    • 单击 [Build] » [Deploy Solution] 来构建和部署 CustDB。

      构建应用程序时,会自动将其上载到远程设备。

  5. 启动 MobiLink 服务器:

    • 要启动 MobiLink 服务器,单击 [开始] » [程序] » [SQL Anywhere 16] » [MobiLink] » [同步服务器示例]。

  6. 运行 CustDB 应用程序:

    运行 CustDB 应用程序之前,必须将 custdb 数据库复制到设备的根文件夹。将名为 %SQLANYSAMP16%\UltraLite\CustDB\custdb.udb 的数据库文件复制到设备的根目录。

    在设备或模拟器中,执行位于 \Program Files 下的项目文件夹中的 CustDB.exe

结果

CustDB 应用程序开始加载。