Maximize MenuMinimize Menu

 

 

TOP

Trajecto's Win32 API Programming Tutorial for Pocket PC

Hello World

In this tutorial we will create a "Hello World" program using the MessageBox() API function. The Win32 library is written in C, so because of that and since we love C, this tutorial will be written in C. We are also going to be different and not use what everybody else uses, we are going to use Pelles C for Windows as our programming environment. Pelles C for Windows is a complete development kit for Windows and Pocket PC and can be downloaded here at no cost. Donations for Pelles C are greatly appreciated!

1. Once you've downloaded and installed Pelles C for Windows start a new project named Hello...

 

Use WinCE Pocket PC Program (EXE)

You will now have the daunting "empty project" that strikes fear into the hearts and minds of new programmers. Do not despair, great things are ahead.

Select File | New | Source Code

Enter the source Code as shown above.
No cut and paste here mister!

Select File | Save name it Hello and select yes to add it to the current project.

Select Projet | Compile

Select Projet | Build

YOU ARE DONE!!!

Now let's test our first application on the Pocket PC


PC


Pocket PC

To install to the Pocket PC simply create two File Manager windows, one of your PC and one of your Pocket PC, then drag the applicaion "Hello" to the Pocket PC.

From within Pelles C you can also use Tools | Copy to Pocket PC

 

Select the Hello application on the Pocket PC and see your first Windows App!!!

 

NOTE: The same code works If you had chosen to create a WIN32 Program (EXE) and the result would look like this:

 

So what just happened?

Anatomy of a Windows Program

All About MessageBox

 

 

 

Radiosity Games
See our new game site

 

 

©Copyright TrajectoryLabs.com. All Rights Reserved.