Share via


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

  1. From the Project menu, choose Add New Subproject.

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

  3. Choose Next.

  4. In the Auto-generated subproject files page, choose A typical "Hello World" application, and then choose Finish.

  5. In Solution Explorer, expand the <Subproject name> node. Then, expand Sources files.

  6. Double-click <Subproject name>.cpp.

  7. Add an #include directive for each header file that is required by your application underneath the #include directive for resource.h.

  8. 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 
    
  9. 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
  10. 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