O'Reilly logo

Windows® CE 3.0 Application Programming by Marshall Brain, Nick Grattan

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

Using Mini-Applications with Notification

In general it is best not to run large applications using CeRunAppAtTime, since the user may be confused by a new application suddenly appearing and may cause an out-of-memory error. Instead, you should create a "mini-application" with no user interface and have this application run at the specified time. The "mini-application" can then notify the main application through a private message of the event, or perhaps perform some scheduled task.

Listing 7.2 shows the code for a "mini-application" called Notify.exe. This is a Windows CE application with a WinMain function that registers a new windows message using the RegisterWindowMessage function. The RegisterWindowMessage function is passed a string and ...

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