O'Reilly logo

Professional Windows® Embedded Compact 7 by Thierry Joubert, David Jones, Samuel Phung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CREATING A CONSOLE APPLICATION WITH A DYNAMIC LINK LIBRARY

For this activity you need an existing OS image project that has been built and runs with Kernel and KITL debugging enabled.

In Platform Builder, you can add a native code console application by right-clicking the SubProjects icon in the Solution folder and selecting Add New SubProject. Then select WCE Console Application, give it a name (e.g., MyApp), and select Next. Typically, you would select the second option (“Simple console application”) and finish. This generates a project in a folder below the OS SubProjects folder with the name that you gave the subproject. To create a native DLL project, you do the same except you would select WCE Dynamic-Link Library instead of WCE Console Application. (Call it MyDLL.) For this project select a DLL that exports some symbols.

Configure both projects to be excluded from the image and to be built as follows:

  • Right-click on the OS project in the Solution Explorer.
  • Select Properties, then Configuration Properties, then SubProject Image Settings.
  • Select the project and configure the dialog as in Figure 31-6.

By doing this you can modify the subprojects and rebuild them while the OS is running without rebuilding the OS.

Following are a couple of hints to avoid some confusion with terminology with respect to native projects:

  • When a SubProject is created, the sources ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required