O'Reilly logo

Professional Windows® Embedded Compact 7 by Thierry Joubert, David Jones, Samuel Phung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

AUTOLAUNCH MULTIPLE APPLICATIONS

With help from the AutoLaunch component, launching multiple Compact 7 applications during startup and controlling the applications’ startup sequence is simple.

In the previous exercise, the AutoLaunch component is included in the OS design and configured to launch the PB7_Win32.exe executable during startup.

Continue with the MyVPC OS design from the previous exercise, and work through the following steps to configure the MyVPC OS design to generate an OS run-time image to launch multiple applications during startup:

1. From the Catalog Items View tab, select and add the following components to the OS design:

  • WordPad
  • Internet Explorer 7.0 Sample Browser

2. From the Explorer tab, double-click OSDesign.reg to open this file in the code editor window.

3. Add the following entry to OSDesign.reg, to configure the AutoLaunch component to launch these applications, with individual time delay:

image
[HKEY_LOCAL_MACHINE\Startup]
    ; Launch with 5 seconds delay
    "Process0"="PB7_Win32.exe"
    "Process0Delay"=dword:00001388
 
    ; Launch with 10 seconds delay
    "Process1"="IEsample.exe"
    "Process1Delay"=dword:00002710
 
    ; Launch with 15 seconds delay
    "Process2"="Pword.exe"
    "Process2Delay"=dword:00003A98

Code snippet is from Chapter23_Snippet.txt

4. From the VS2008 Build menu, click Build Solution to build and generate a Compact 7 OS run-time image from the OS design.

5. Follow ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required