Native Code Application Development with Platform Builder
This article is an overview of creating an OS native code subproject.
1. To add a new Native Code Subproject to the OS you Right-Click on the Subprojects tree of the OS in the Solution Explorer, select Add New Subproject.
Figure 14.1: Initiating the Subproject Wizard from Solution Explorer
2. Then choose the type of project. On offer[1] are:
Figure 14.2: The Subproject Wizard project templates
The first option is the Windows Form template. The last, TUX, if for testing OS system and will be discussed in later chapters. Note that these subproject are by default generated under the OS’s Subprojects folder (e.g. c:\WINCE800\OSDesigns\OSDesign1\OSDesign1). If on the other hand you add a new project to the solution using an SDK template it is generated off the root of the solution (e.g. c:\WINCE800\OSDesigns\OSDesign1)
3. You will then get some project specific options such as a sample Hello World application.
4. Finally, once generated the new project will be added to the Subprojects tree of the OS project in Solution Explorer.
When developing a native code application in PB it is recommended to:
This enables changes to be made to the application and for it to rebuilt and rerun (and debugged) without shutting down the OS. When the application is completed, it then can be included in the OS image and set to Release mode. These settings are available via the OS Property Pages. (Right-click on the OS in Solution Explorer and choose Properties. Or choose it from the Project menu.). Select Subproject Image Settings and choose the required subproject (or multiple subprojects). Then press [Edit] to get the required Edit-Run-Time Image Settings dialog. Make the settings as shown and press OK} to save.
Figure 14.3: OS Property pages
Figure 14.4: OS Subproject build options
[1] These templates exist in the Visual Studio as separate DLLs. Unfortunately, unlike Visual Studio Project Templates they are not extensible. You can’t create your own custom templates.
NEXT: Console App Development with Platform Builder
Click here to provide feedback and input