Building a Device Driver in the IDE

In the Platform Builder integrated development environment (IDE), you can build a device driver as a part of the larger process of creating a driver for use with the Windows CE operating system (OS). For information about building a device driver from the command line, see Building a Device Driver from the Command Line. You can build your driver after you create the necessary code for your driver to correctly interact with your target device and the Windows CE OS.

To build a device driver in the IDE

  1. From the Workspace window, choose the FeatureView tab.

  2. Right-click the Platform icon, and then choose Settings.

    - or -

    From the Platform menu, choose Settings.

  3. Choose the Environment tab, and then choose New.

  4. In the Variable Name box, type WINCEOEM, and then, in the Variable Value box, type 1.

    When you complete this step, you include the paths for the driver development kit (DDK) and Oak header files in the build.

  5. To set your environment variable values, choose OK.

  6. To close the Platform Settings window, choose OK.

  7. To build the entire platform, including the driver, on the FeatureView tab of the Workspace window, select the platform name, and then, from the Build menu, choose Build Platform.

    - or -

    To build all project files for your driver, on the FileView tab of the Workspace window, select <filename>.dll, and then, from the Build menu, choose Build <filename>.dll.

    If you choose this approach, you may have to provide header and library (.lib) files.

  8. After the build process has completed, verify that your driver has built successfully by confirming that no error messages appear in the Build window.

If no error messages appear in the Build window, you have successfully built your driver from the IDE.

See Also

How to Create a Device Driver | Driver Development | Driver Development Overview | Setting or Clearing an Environment Variable | Build System | How to Add Power Management to a Device Driver

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.