Developing for Different Versions of Windows CE

Use the version of the Windows® CE Toolkit for Visual C++® 5.0 development libraries (1.0, 1.01, or 2.0) 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 Windows CE Toolkit for Visual C++ will automatically select the appropriate default link library for the specified version of Windows CE.

    To develop applications for version 1.0 of Windows CE

  1. Add "#define_WIN32_WCE 100" to your source files before the line that includes the header file, Windows.h.

    -or-

    add "/D"_WIN32_WCE=100" to the compiler command line.

  2. Link with the version 1.0 libraries.

    To check the default link library

  1. Start Microsoft® Visual Studio™.
  2. On the Tools menu, select Options.
  3. In the Options dialog box, click the Directories tab.
  4. On the Platform drop-down menu, select the platform you want to target.
  5. On the Show directories for drop-down menu, select Library files to display the default library files.

Note If the version 1.0 files are the default, the file name \DevStudio\WCE\lib\WCE100\device_name will be displayed. If the version 1.01 files are the default, the file name \DevStudio\WCE\lib\WCE101\device_name will be displayed.

Note You can also start emulation by clicking EXPLOREM.EXE, a file located by default in Program Files\Windows CE Platform SDK\wce\emul\hpc\windows.