Configuration process for the Windows Mobile 6 development environment

Source: Internet
Author: User
Tags command line

List of required files:

1.Visual Studio Professional and a higher version (Visual Studio Express does not currently support smart Device development) (recommended by thunder or electric mule).

2.Visual Studio 2005 Patch SP1 (recommended with thunder or electric mule)

3. ActiveSync version 4.5 (HTTP://DOWNLOAD.MICROSOFT.COM/DOWNLOAD/7/E/C/7ECBD388-7FB5-4E3E-B57F-12EAF7EB6136/SETUP.MSI)

4.Windows Mobile 6.0 Professional SDK (http://download.microsoft.com/download/f/2/3/ F232f773-7edc-4300-be07-d3b76a5b3a91/windows%20mobile%206%20professional%20sdk%20refresh.msi)

5. Windows Mobile 6 Professional Chinese image (http://download.microsoft.com/download/0/1/2/ 012bfbba-9fe5-4e68-86c9-d434446d97dd/0804/windows%20mobile%206%20professional%20images%20 (CHS). msi)

Development Environment Installation Order:

Install Visual Studio 2005 First, then install Visual Studio SP1, install ActiveSync version 4.5, install the Windows Mobile 6.0 Professional SDK, install Windows Mob Ile 6 Professional Chinese image

Installation process description and its attention points:

1. We typically use Visual Studio Professional and a higher version for the development of smart device programs (not currently supported by Visual Studio Express). In the process of installing Visual Studio 2005, you simply select the Smart Device programmable radio box in Figure 1, and you can use Visual C # to develop the smart Device program for managed code after installation.

2. After we install Visual Studio 2005, we need to install the ActiveSync software so that we can continue to complete the SDK installation for a particular platform, which I hope you must pay attention to. When the ActiveSync is installed, you will be prompted to restart your computer to complete the settings.

ActiveSync can also support PPC and Microsoft Smartphones (Smartphone), which makes it easy to synchronize data between PCs and PPC or smartphones. ActiveSync not only can sync files, emails and schedules, but also has many additional functions like SMS. In addition, users of Windows mobile devices can access the Internet by connecting to the PC. ActiveSync can be said to be a bridge between PC and mobile device.

3. Windows Mobile 6.0 and Windows Mobile 5.0 are based on Windows CE 5.0, except that Windows Mobile 6.0 adds some new features, such as Vista style, based on the original 5.0. The latest version of the SDK for Windows Mobile 6.0 can contain two versions, one for Pocket PCs and Pocket PC Phone

The professional version developed by edition, and the other is the standard version developed for Smartphone. In this topic, we developed primarily for Pocket PC Phone Edition, which has the ability to communicate with the Pocket PC, and the hardware performance is significantly higher than smartphone, so installing Windows under general Conditions Mobile 6.0 Professional SDK.

4. By default, installing the Windows Mobile 6.0 Professional SDK automatically installs the English Device Emulator for Windows Mobile 6.0, while the Chinese Device Emulator (Windows Mobile 6 Professional Chinese mirror Image) is required to be downloaded separately for installation.

5. When the Windows Mobile 6.0 SDK is installed, we can develop smart device programs for Windows Mobile 6.0 through Visual Studio 2005来. In the smart Devices bar we'll find more "Windows Mobile 6 Professional" and we can create five different types of projects with the template on the right.

6. Install the SDK process if you encounter error prompts "Failure:cannot Create WScript Shell object" Click OK, complete the installation, you need to execute at the command line ... Microsoft Visual Studio 8common7ide

The devenv.exe in the directory, that is, type "Devenv.exe/setup". Then the installation was successful!!!

Another hello world that everyone knows, DEMO

Below, use C # to develop a simple demo demo.

Select "Visual C #"-"Smart Device"-"Windows Mobile 5.0 Pocket PC"-"Device Application" to create a new project for DeviceApplication1.

Design a form as shown below.

Edit the Button1 Click event

private void Button1_Click (object sender, EventArgs e)

{

Label1. Text = "Hello World";

}

When all is done, select Menu "Debug"-"Start (Without Debugging)", prompting you to select the location to deploy, and of course choose "CHS Windows Mobile 5.0 Pocket PC Emulator".

Click "Deploy", VS2005 began to deploy on the simulator, this process is slow, vs below the status bar will have a progress bar display, at this time the center of the simulator screen will also have a small icon display, a little wait.

When deployment is complete, the VS status Bar will have a "successful deployment" prompt, and the emulator will automatically open the deployed program. The installation location of this program is located in the "My Device program FilesDeviceApplication1" directory on Windows Mobile.

Clicking on the button will change the text displayed.

In this way, a small Windows Mobile program is completed, Windows Mobile development does not look very difficult ah, but only to use C #, if the use of C + + development of native code that is completely different style, giving people a lot more complex.

By the way, screenshots in the simulator are convenient to use "remote amplification" in the "Remote Tool" from Visual Studio 2005, which is alt+printscreen to the emulator diagram directly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.