First Steps in Windows Mobile Programming

This section provides a guide to the steps you must take to develop applications for Windows Mobile-based Pocket PCs.

Before downloading and installing any of the resources discussed in this guide, your system must meet the following requirements:

System Requirements

  • Supported Operating Systems: Windows 2000, Windows XP
  • Microsoft Windows 2000 Professional SP2, Microsoft Windows 2000 Server SP2, or Microsoft Windows XP Professional
  • A desktop computer with a Pentium-II class processor, 450 MHz or faster
  • 96 MB (128 MB recommended) memory for Windows 2000 Professional or Windows XP Professional. 192 MB (256 MB recommended) memory for Windows 2000 Server.
  • 200 MB available hard disk space
  • A CD-ROM drive
  • A VGA or higher-resolution monitor. A Super VGA (800 x 600 or larger) monitor is recommended.
  • A Mouse or compatible pointing device

To install eMbedded Visual C++ 4.0

  1. Download eMbedded Visual C++ 4.0 here: eMbedded Visual C++ 4.0.
  2. Create a new folder on your desktop. The name is unimportant.
  3. Run the application you downloaded in step 1. If the Open File - Security Warning dialog appears, click Run.
  4. In the WinZip Self-Extractor dialog that appears, press Browse... to select the folder you created in step 2. The files which you will use to install eMbedded Visual C++ 4.0 will be extracted into this folder. Once you have selected the folder, press OK.
  5. Press Unzip.
  6. Press OK on the dialog which appears when the files have been successfully extracted.
  7. Press Close on the WinZip Self-Extractor dialog.
  8. Run the setup.exe application in the folder you created in step 2. Proceed through the installation steps in the Installation Wizard dialog that appears. Use the following CD key when installing this software: TRT7H-KD36T-FRH8D-6QH8P-VFJHQ. Make sure to do a complete install of everything offered by the wizard
  9. Wait while eMbedded Visual C++ 4.0 is installed on your machine. Click on OK if any dialog boxes appear during the install to notify you that a component was correctly installed.
  10. You may now delete the folder you created in step 2.

To install eMbedded Visual C++ 4.0 SP4

  1. Download eMbedded Visual C++ 4.0 SP4 here: eMbedded Visual C++ 4.0 SP4
  2. Create a new folder on your desktop. The name is unimportant.
  3. Run the application you downloaded in step 1. If the Open File - Security Warning dialog appears, click Run.
  4. In the WinZip Self-Extractor dialog that appears, press Browse... to select the folder you created in step 2. The files which you will use to install eMbedded Visual C++ 4.0 will be extracted into this folder. Once you have selected the folder, press OK.
  5. Press Unzip.
  6. Press OK on the dialog which appears when the files have been successfully extracted.
  7. The setup application runs automatically.
  8. Proceed through the installation steps in the Installation Wizard dialog that appears.
  9. Wait while eMbedded Visual C++ 4.0 SP4 is installed on your machine. Click on OK if any dialog boxes appear during the install to notify you that a component was correctly installed.
  10. You may now delete the folder you created in step 2.

To install the SDK for Windows Mobile 2003-based Pocket PCs

  1. Download the SDK for Windows Mobile 2003-based Pocket PCs here: SDK for Windows Mobile 2003-based Pocket PCs.
  2. Run the application you downloaded in step 1. If the Open File - Security Warning dialog appears, click Run.
  3. Proceed through the installation steps in the Installation Wizard dialog that appears.
  4. Wait while the SDK for Windows Mobile 2003-based Pocket PCs is installed on your machine. Click on OK if any dialog boxes appear during the install to notify you that a component was correctly installed.
  5. The SDK is installed

To install the SDK for Windows Mobile 2003-based Smartphones

  1. Download the SDK for Windows Mobile 2003-based Smartphones here: SDK for Windows Mobile 2003-based Smartphones.
  2. Run the application you downloaded in step 1. If the Open File - Security Warning dialog appears, click Run.
  3. Proceed through the installation steps in the Installation Wizard dialog that appears.
  4. Wait while the SDK for Windows Mobile 2003-based Smartphones is installed on your machine. Click on OK if any dialog boxes appear during the install to notify you that a component was correctly installed.
  5. The SDK is installed

To install Emulator Images for Windows Mobile 2003 Second Edition software for Pocket PC

  1. Download Emulator Images for Windows Mobile 2003 Second Edition software for Pocket PC here: Emulator Images for Windows Mobile 2003 Second Edition software for Pocket PC.
  2. Run the application you downloaded in step 1. If the Open File - Security Warning dialog appears, click Run.
  3. Proceed through the installation steps in the Installation Wizard dialog that appears.
  4. Wait while Emulator Images for Windows Mobile 2003 Second Edition software for Pocket PC is installed on your machine. Click on OK if any dialog boxes appear during the install to notify you that a component was correctly installed.
  5. The emulators are installed

To install Developer Resources for Windows Mobile 2003 Second Edition

  1. Download the Developer Resources for Windows Mobile 2003 Second Edition here: Developer Resources for Windows Mobile 2003 Second Edition.
  2. Run the application you downloaded in step 1. If the Open File - Security Warning dialog appears, click Run.
  3. Proceed through the installation steps in the Installation Wizard dialog that appears.
  4. Wait while Developer Resources for Windows Mobile 2003 Second Edition is installed on your machine. Click on OK if any dialog boxes appear during the install to notify you that a component was correctly installed.
  5. The resources are installed

To create your first application using eMbedded Visual C++ 4.0.

  1. Run eMbedded Visual C++ 4.0 from the Start menu.
  2. Choose New from the File menu.
  3. Type "Hello World" in the Project name text box, and press OK.
  4. In the dialog that appears, choose the A typical "Hello World! application option and press Finish.
  5. In the dialog that appears, press OK.
  6. From the Build menu, choose Build Hello World.exe. The Pocket PC 2003 Emulator launches by default. When the application is built, the resulting executable file is copied into the root folder of the emulator.
  7. When it is finished building, choose Execute Hello World.exe from the build menu.
  8. The program is executed on the Pocket PC 2003 Emulator and "Hello World!" is displayed.

Congratulations! You've just created your first application for a Windows Mobile Device.

See Also

How to: Connect the Emulator to a Development Tool

Provides step-by-step procedures for configuring eMbedded Visual C++ to connect to the emulator for Windows Mobile-based Pocket PCs and for modifying emulator connections to Visual Studio.NET 2003.

How to: Connect the Windows Mobile-Based Device to a Development Tool

Provides step-by-step procedures for configuring eMbedded Visual C++ and Visual Studio.NET 2003 to connect to Windows Mobile-based Pocket PCs.

Developing Applications for Windows Mobile: FAQ

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.