Creating a Replication-based Mobile Application Project Using the SybaseMobileApplication Template

Create a replication-based mobile application project using the SybaseMobileApplication template which allows you to write C# device applications.

Prerequisites
To install the template, select Windows Mobile .NET Components during the Sybase Unwired Platform installation process.
Note:

This procedure is for replication-based synchronisation client projects.

For message-based applications, you need to remove the references to the Ultralite DLLs, and add references to the System.Data.SQLite.dll (for Windows and Windows Mobile) and SQLite.Interop.065.DLL (for Windows Mobile only).

  1. From the Visual Studio main menu, select File > New > Project. Select the project template, and include the Name, Location, and Solution name. To use the Sybase Mobile Application template, select Visual C# > SybaseMobileApplication as the project type. Click OK.
  2. Enter:
    • Target platform – WM5, WM6, Win32, and so on.
    • Library version – .NET version 2.0, 3.5, and so on.
    • Language – the language used in the resource DLLs, to be included in the generated project.

    Based on your selections, different sets of DLLs are included in the project. The project contains all assemblies and runtime support DLLs required to access the Object API.

  3. (Optional) Select Include SUP Windows Mobile Controls to reference the dependent Sybase Windows Mobile Component Library Assemblies in the generated project. This allows you to use Sybase Unwired Platform UI controls.
  4. Click OK to create the project. Inspect the contents of the project from the Solution Explorer by expanding the various folders within the project.
  5. Right-click on the project, and select select Add > Existing Item.
  6. Browse to the folder <UnwiredPlatform_InstallDir>\UnwiredPlatform\Servers\UnwiredServer\ClientAPI\DeviceID\WinCE\<platform> in the created project, select PUtilTRU.dll, then select Add > Add as Link.
  7. In its Properties view, set Build Action to Content and Copy to Output Directory to Copy always.
  8. Follow the same steps to add the ulnet11.dll, which is located in <UnwiredPlatform_InstallDir>\UnwiredPlatform\Servers\UnwiredServer\ClientAPI\UltraLite\<platform> as a link.
Once you have generated and built a project, you can write custom mobile applications based on your selections.