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

SQL Anywhere 12.0.0 (中文) » UltraLite - C 及 C++ 编程 » 应用程序开发 » 开发用于 Windows Mobile 的 UltraLite 应用程序

 

选择链接运行时库的方式

Windows Mobile 支持动态链接库。在链接时,可以选择使用导入库将 UltraLite 应用程序链接到运行时 DLL,或者使用 UltraLite 运行时库静态链接应用程序。

性能提示

如果目标设备上只有一个 UltraLite 应用程序,则静态链接库使用较少的内存。如果目标设备上有多个 UltraLite 应用程序,则使用 DLL 可能更节约内存。

如果通过较慢的链接重复地将 UltraLite 应用程序下载到某个设备,则可能需要使用 DLL,这样可以在初始下载后将下载的可执行文件的大小最小化。

 ♦  使用 UltraLite 运行时 DLL 构建和部署应用程序
  1. 预处理代码,然后使用 UL_USE_DLL 编译输出。

  2. 使用 UltraLite 导入库链接应用程序。

  3. 将应用程序可执行文件和 UltraLite 运行时 DLL 都复制到目标设备。