Creating a Project in Visual Studio

Create a project for your Windows or Windows Mobile device application in Visual Studio.

  1. From the Visual Studio main menu select File > New > Project.
  2. Select:
    • Target platform:
      • Windows Mobile 6.0, 6.1, and 6.5 Professional
      • Windows
    • Library version – .NET version 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.

  3. Click OK to generate the Visual Studio Project.
  4. Add all necessary dlls and assemblies:
    1. Choose Project > Add Reference and add <UnwiredPlatform_InstallDir>\MobileSDK\ObjectAPI\DOE\WM\sup-client.dll and <UnwiredPlatform_InstallDir>\MobileSDK\ObjectAPI\DOE\WM\System.Data.SQLite.dll.
    2. Choose Project > Add Existing Item and add <UnwiredPlatform_InstallDir>\MobileSDK\ObjectAPI\DOE\WM\SQLite.Interop.065.DLL and <UnwiredPlatform_InstallDir>\MobileSDK\ObjectAPI\DOE\WM\PocketPC\CMessagingClient.dll.
    3. In the Solution window, open SQLite.Interop.065.DLL and change the property Copy to Output Directory to Copy always.
    4. In the Solution window, open CMessagingClient.dll and change the property Copy to Output Directory to Copy always.
  5. 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.
  6. Develop the mobile business objects (MBOs) that implement the business logic.
    See these online help topics:
    • Sybase Unwired Platform > Sybase Unwired Workspace – Eclipse Edition > Develop > Developing a Mobile Business Object
  7. Use the Code Generation wizard to generate the C# Object API code for the mobile business object.
  8. Add the generated code to the new project you created from the template.
    For more information, see Rebuilding the Generated Solution in Visual Studio.