Generating a Windows Mobile Device Application

Use the Generate Device Application wizard to generate a Windows Mobile Device Application, launch the Windows Mobile emulator, and run the Windows Mobile device application on the emulator.

Prerequisites You must have Visual Studio installed.
Note: The multilevel insert and linked parameters features are not supported on the Windows Mobile platform.
  1. Click the Verify icon check_16 on the toolbar to verify the device application has no errors.
  2. Click the code generation icon generate_deviceclient_16 on the toolbar.
  3. In the Generate Device Application wizard, select Windows Mobile and click Next.
  4. Enter the information for the code generation options:
    Option Description
    Favorite Configurations Select a configuration from the drop-down list.
    Device
    • Target Device – select the device from the drop-down list.
    • Library Version – choose the Microsoft .NET version of the library used to compile the generated code.
    • Deploy to an ActiveSync Connected Device or Emulator – select to deploy the generated code to a device or emulator. ActiveSync enables the transferring and installation of the application on to the mobile device.
      Note: On Windows Vista, ActiveSync has been replaced with Windows Mobile Device Center.
    Code Generation
    • Visual Studio Solutions Folder – accept the default or click Browse to enter the location for the Visual Studio Solutions folder.
    • Solution Name – enter the name of the Visual Studio solution.
    • Client Project Name – enter the name of the project that contains the user interface.
    Advanced

    When you generate the device application, two projects are generated—the client project, which contains the user interface screens and the mobile application project, which contains the mobile business objects that are used to access and update the data.


    • Client Project Namespace – enter the namespace to use for the generated UI classes.
    • Client Project Assembly Name – the name of the generated .exe file for the project. This is the name that displays on the mobile device.
    • Mobile Application Project Name – the name of the Mobile Application Project that contains the mobile business objects used in the device application.
    • Mobile Application Project Namespace – accept the default or enter the name for the mobile application project.
    • Mobile Application Project Assembly Name – accept the default or enter the name for the .dll of the mobile application project.
    • Client Project Icon – click Browse to select an icon with which to associate the generated .exe file. This is the icon that displays on the mobile device.
    • Deployment Timeout (minutes) – the maximum time to wait for deployment to the device.
    • Silent Install – use this option only when you are deploying to the emulator (not the device itself). This enables deployment to proceed with no user input.
    • Generate Metadata Access Classes – select to generate additional metadata classes that describe the attributes and parameters of the generated MBO classes.
    • Generate Base Classes in a DLL – select so the base classes are generated in a .dll file. If base classes are generated in a dll, you can view the source code, but you cannot edit it. If you do not select this option, the base classes are generated as .cs files, along with the other generated .cs files. The .cs files can be edited.
    • Delete Solution Folder Prior to Generation – remove existing source folders before re-generating the Visual Studio solution.
  5. Click Finish.


Created September 17, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com