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 ...

Get Professional Windows® Embedded Compact 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.