Configuring a Hello World Application (Windows Embedded CE 6.0)
1/5/2010
To compile, link, and include a Hello World application in your run-time image, use the Windows Embedded CE Subproject Wizard.
To configure a Hello World application
From the Project menu, choose Add New Subproject.
In the Windows Embedded CE Subproject Wizard, choose WCE Application, type a name for the project in the Subproject name box. Then, in the Location box, choose the directory for your project.
By default, Platform Builder stores the project in a directory immediately subordinate to your OS design directory. For example, %_WINCEROOT%\OSDesigns\<OS design name>\<Project name>.
Choose Next.
In the Auto-generated subproject files page, choose A typical "Hello World" application, and then choose Finish.
In Solution Explorer, expand the <Subproject name> node. Then, expand Sources files.
Double-click <Subproject name>.cpp.
Add an
#include
directive for each header file that is required by your application underneath the#include
directive for resource.h.Link to the libraries that are required by your application. In Solution Explorer, right-click <Subproject name> and choose Properties. Choose Link, and in the box next to Additional Libraries, add an entry to the list for each library. The entry must use the following format:
$(_PROJECTROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\<RequiredModule>.lib
Use the wizard-generated template code as a starting point for implementing the functionality of your application. At minimum, customize the template implementations for the following functions:
- WinMain
- MyRegisterClass
- InitInstance
- WndProc
To make additional modifications to the files in your subproject, such as modifying the .reg file or the .rc file, browse through the <Subproject name> tree to view and modify files that are included in the Hello World application.
See Also
Tasks
How to Develop an Application for a CEPC
Other Resources
.NET Compact Framework
C/C++ Libraries for Windows Embedded CE