LCD Display
Sample Application

The sample application was used to demonstrate how the libraries and hardware could be used. The application was a relatively simple exercise in C++. It was developed for Windows CE, which can provide some challenges. This is because Windows CE does not feature the complete Win32 API. The easiest solution was to modify existing code. The "Hello World" app was modified to have a text box and a send box. It was then a simple matter of triggering a write to the device on the correct event.
The send box and text box were created with simple function calls. The CreateWindowEx function was utilized to implement both boxes. It was passed several general parameters (such locations and type). It also was passed a code, which would represent an event on that box.
Next, code was added to listen for an event on that box. The code was added to the function DoCommandMain (a special message handling function). The function implements a case statement, which switches on the message. If the message send is received, the string is sent to the LCD via library calls. The code is provided below: