Choosing how to link the runtime library

Windows Mobile supports dynamic link libraries. At link time, you have the option of linking your UltraLite application to the runtime DLL using an imports library, or statically linking your application using the UltraLite runtime library.

Performance tip

If you have a single UltraLite application on your target device, a statically linked library uses less memory. If you have multiple UltraLite applications on your target device, using the DLL may be more economical in memory use.

If you are repeatedly downloading UltraLite applications to a device, over a slow link, then you may want to use the DLL to minimize the size of the downloaded executable, after the initial download.

To build and deploy an application using the UltraLite runtime DLL

  1. Preprocess your code, then compile the output with UL_USE_DLL.

  2. Link your application using the UltraLite imports library.

  3. Copy both your application executable and the UltraLite runtime DLL to your target device.