Running an Application

When you run an application from the Windows CE Toolkit for Visual Basic 5.0 IDE, it is compiled to create a .pvb file. The .pvb file containing your code is copied to the Remote Path specified in Project Properties. If "Emulator" is the selected setting for Run on Target, then the emulator starts automatically. Otherwise, if a remote device is connected, the toolkit determines your processor type. If the runtime files have not been already been downloaded, they are downloaded automatically. The toolkit then starts pvb.exe, which, in turn, executes the code in the .pvb file to run your program.

If you have included any extra controls in your project, they must be installed on the device specified in the Run on Target box in Project Properties. You can use the Windows CE Control Manager to verify that the correct controls are installed on your target device.

Note If your Windows CE Toolkit for Visual Basic 5.0 program hangs during execution, you can terminate the program by terminating the associated pvb.exe file. Each Windows CE project uses a separate instance of pvb.exe.

    To run your program under emulation

  1. In the Project Properties dialog box, set the Run on Target to Emulation.
  2. Press the F5 key.

    – Or –

    On the Run menu, select Start.

    To run your program on a remote device

  1. Set the Run on Target to Remote Device in the Project Properties dialog box.
  2. Press the F5 key.

    – Or –

    On the Run menu, select Start.