Compact 2013 Ebook

14.3 Native App Dev. with PB
Created by djones on 6/18/2013 4:57:51 AM

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.

clip_image002

Figure 14.1: Initiating the Subproject Wizard from Solution Explorer

2. Then choose the type of project. On offer[1] are:

  • WCE Application
  • WCE Console Application
  • WCE Dynamic-Link Library
  • WCE Static Library
  • WCE TUX Dynamic Link Library

clip_image004

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.

Application Configuration for Development

When developing a native code application in PB it is recommended to:

  • Configure and build the OS so that it runs in Retail Mode. With application development, we generally do not need to debug the OS.
  • Always when developing native applications in PB, configure them to be
    • Built with the OS
    • Excluded from the OS though
    • Built in Debug mode.

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.

clip_image006

Figure 14.3: OS Property pages

clip_image008

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

print

Click here to provide feedback and input

  Comments

There is no comment.

Turkish porno izle video site in rokettubeporno izle