NATIVE CODE
A refresh: now we will recap some aspects of native code development in Platform Builder.
Native code can be a user mode application, a user mode application library (DLL), or a driver (user mode or kernel mode). A native code module is added to a Compact 7 OS project by adding the module’s subproject to the OS project. Existing projects are added by browsing to the subproject folder and selecting its source file. New projects are added via Platform builder templates or third-party wizards such as CEDriverWiz (Chapter 35, “The Target System”) and CEComponentWiz (Chapter 44, “FTDI Devices”). A subproject contains parameter files (.bib, .dat, .db, and .reg) used in integrating the project into the Compact 7 OS project and two project files (the sources and .pbxml). If source code is to be built, then the project can contain one or more source files and optionally one or more header files. Content resources such as media files and configuration files may also be optionally added to the subproject. When the OS is built, subprojects can be configured to be built (or not built), and included (or not included) in the image. They can also be configured to be built in Debug mode (or not) (See Chapter 34). When subprojects are built, the built components are placed in the OS project’s release directory (sometimes called The FlatRelease directory). These components include the parameter files for the subproject as well as the built module and resource files. If the subproject ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access