Windows CE Documentation

Sources of Information

Creating an Application:

This will have created a directory way down its hierarchy where your project files are kept as defined in Location above. It is likely to be something like:
C:\Program Files\Microsoft eMbedded Tools\Common\EVC\MyProjects\qc_demo

Files can be created in situ in that directory by means of:

Files created in this way are automatically added to the project.

For any pre-existing files, either demo files or source created elsewhere, the simplest way to proceed is to copy them into this directory and then explicitly adding them one by one to the project by performing:

This also applies to any object files such as the QuickCam driver that need to be linked in to create an executable. You can verify that files have been added to the project by expanding the hierarchy in the FileView window. Files can be opened for editing by double clicking the file name in that display.

A file can be removed from a project by selecting it in the FileView window and then pressing the Delete key. It should disappear from the hierarchy.

Before you build your project you must configure the compiler to use the correct download protocol. You will probably only have to do this once, or you may even find that it has been done. However, you should check.

The compiler is now ready to build your project. When the build is complete the the project executable file will be automatically downloaded to your target system - the Arcom MediaGX board. If for any reason you you do not want to download the executable after compilation you can turn this feature off from the Tools-Options... menu Download tab.

To build your project i.e. compile and link it, and download the executable to the Arcom board, do:

The progress of this step is monitored in the bottom window. Any errors are reported there.

The first time a build is done, the download sequence starts by displaying a `Connecting to the device' window overlaid with a `Manual Server - Action' window. This gives you a command line finishing with four hex numbers that have to be typed in to an MS-DOS command window at the Arcom board end (see below). This process should not need to be repeated unless the host PC or the Arcom board has been rebooted.

Setting up the Downloading connection to the Arcom board.

This requires a certain amount of messy setting up before the Build process can proceed with the downloading. Proceed as follows:

A Demo Application

Here is a demo application program which writes a few characters of text to serial port COM2: each time the left button on the mouse is pressed: serial.c

It uses a thread to handle the comms and a semaphore to synchronise the thread with button presses.