Developing for Different Versions of Windows CE

Use the version of the Windows CE Toolkit for Visual C++ 6.0 development libraries that corresponds to the version of Windows CE running on the target device.

You do not need to manually change the link library when you write for platforms that support earlier versions of Windows CE. The toolkit automatically selects the appropriate default link library for the specified version of Windows CE.

    To check the default link library

  1. Choose Options on the Visual Studio Tools menu.
  2. Choose the Directories tab in the Options dialog box.
  3. Select your target platform on the Platform drop-down menu.
  4. Choose Library files on the Show directories for drop-down list box. A drop-down menu displays the default library files.

You can set the toolkit so that it automatically downloads your application to the device. When the toolkit downloads your application’s output file to a device, it places the file in the location specified by the download directory.

    To change the download directory

  1. Choose Settings on the Visual Studio Project menu.
  2. Choose the Debug tab in the Project Settings dialog box.
  3. Enter the new directory in the Download directory text box.

    To automatically download an application to a device

  1. Choose Options on the Visual Studio Tools menu.
  2. Choose the Windows CE tab on the Options dialog box.
  3. Select the Always download binary to the target check box to automatically download your application to the device. Select the Always download dependencies to the target check box to automatically download dependent DLLs to the device.

In order to run or debug an MFC for Windows CE-based application that links dynamically to MFC, the remote device or the emulation object store must contain the necessary dynamic-link libraries (DLLs). When the Always download dependencies to the target feature is enabled, the toolkit automatically copies any of the following DLLs:

The * in the preceding names refers to the DLL version, such as 200 in mfcce200(d).dll. The toolkit does not automatically download dependent DLLs that are not in the preceding list, such as hwxusa.dll. Copy these DLLs to the device.