Developing Device Applications for Windows Mobile and Windows Platforms

Build a device application that runs on Windows Mobile and Windows .NET platforms.

Prerequisites
The Sybase Unwired Platform Visual Studio templates are installed in Visual Studio by the Sybase Unwired Platform installation process when you select the Windows Mobile UI Controls feature.
  1. From the Visual Studio main menu select File > New > Project.
  2. In the Visual C# project type, select SybaseMobileApplication and click OK.
  3. In the next screen, select:
    • Target platform:
      • Windows Mobile 5.0 Pocket PC and Smartphone
      • Windows Mobile 6.0 Professional and Standard SDK
      • Windows
      • Windows CE
    • Library version – .NET version 2.0 or 3.5
    • Language – the language used in the resource DLLs, to be included in the generated project.

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

  4. (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.
  5. Click OK to generate the Visual Studio Project with the dependent Sybase Unwired Platform .NET assemblies.
  6. Build the Solution. From the Visual Studio main menu select Build > Build Solution. The DLLs are copied to the target directory and the directory structure is flattened. Once generated and built, you can write custom mobile applications based on your selections.
  7. Develop the mobile business objects (MBOs) that implement the business logic. See these online help topics:
    • Sybase Unwired Platform 1.5 > Sybase Unwired Workspace 1.5 – Eclipse Edition > Develop > Developing a Mobile Business Object
  8. Use the Code Generation wizard to generate the C# Object API code for the mobile business object.
  9. Add the generated code to the new project you created from the template. For more information, see the Rebuilding the Generated Solution in Visual Studio.