Starting a Project

When starting a new project, you must specify which environment you are developing for; whether emulation or a remote device. When you first start your project, develop for emulation, where you can quickly debug your program and evaluate its interface. When you are ready to run and test your program on the device, reconfigure the project properties to build for a remote device.

    To write a Windows CE Toolkit for Visual Basic 5.0 program:

  1. Start Visual Basic 5.0.
  2. Visual Basic displays the following New Project dialog box, which shows all types of programming projects.

  1. Select and double-click on the new project type, Windows CE Project.

    When you start a Windows CE project, the Visual Basic IDE changes slightly and determines the types of objects and components your program can use. Control components are limited when you are creating a Windows CE project due to memory constraints and other factors. The Project Properties dialog appears.

  1. Set properties, choose emulator, or remote device.
  2. Write your code.
  3. Connect the remote device, if necessary.
  4. Run or debug the program for emulation or the remote device.

    To start the emulator

The emulator is started automatically when you run a program for emulation. You can start the emulator manually when you are not running a Visual Basic program.

  1. Click the Start button, point to Programs, and then click Windows CE Platform SDK.
  2. Select Desktop HPC Emulation.

    To start the remote device

Note Before you start a Windows CE Toolkit for Visual Basic 5.0 program, you first need to run Visual Basic 5.0 (since Windows CE Toolkit is an add-on product to Visual Basic 5.0).

    To start a new Windows CE emulation project

  1. On the File menu, click New Project.
  2. Double-click the "Windows CE Project" in the New Project dialog box.
  3. In the Run on Target frame box, select Emulator.

    To start a new Windows CE remote device project

  1. On the File menu, click New Project.
  2. In the New Project dialog box, double-click Windows CE project.
  3. In the Run on Target box, select Remote Device.