Configuration process of Windows Mobile 6 Development Environment

Source: Internet
Author: User

List of required files:

1. Visual Studio 2005 Professional and later (Visual Studio 2005 Express currently does not support smart device development) (we recommend using thunder or lightning ).

2. Visual Studio 2005 patch SP1 (we recommend using thunder or lightning)

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 sequence:

Install Visual Studio 2005, Visual Studio 2005 SP1, ActiveSync version 4.5, Windows Mobile 6.0 Professional SDK, and Windows Mobile 6 Professional Chinese Image

Installation instructions and precautions:

1. We usually use Visual Studio 2005 Professional and later for smart device Program Development (Visual Studio 2005 Express is not currently supported ). When Visual Studio 2005 is installed, you only need to select the "smart device programmable technology" option in Figure 1, after installation, you can use Visual C # To develop a smart device Program Hosting code.

2. After Visual Studio 2005 is installed, We need to install the ActiveSync software so that we can continue to complete the SDK installation for a specific platform. We hope you will pay attention to this order. After ActiveSync is installed, you will be prompted to restart the computer to complete the corresponding settings.

ActiveSync supports both PPC and Microsoft Smartphone, which can be used to conveniently synchronize data between PCs and PPC or smartphones. ActiveSync not only synchronizes files, emails, and schedules, but also has many additional features such as synchronizing SMS. In addition, users of Windows Mobile devices can access the Internet by connecting to a PC. ActiveSync is a bridge between PCs and mobile devices.

3. Windows Mobile 6.0 and Windows Mobile 5.0 are both based on Windows CE 5.0, but Windows Mobile 6.0 adds some new features, such as the Vista style, on the basis of the original 5.0. The latest SDK version of Windows Mobile 6.0 can contain two versions:

The Professional version developed by Edition, and the Standard version developed for Smartphone. In this topic, we mainly develop the Pocket PC Phone Edition platform. Compared with the Pocket PC, it has the call function, in addition, the hardware performance is much higher than that of Smartphone, so you can install Windows Mobile 6.0 Professional SDK under normal conditions.

4. by default, the Windows Mobile 6.0 Professional SDK automatically installs an English-language device Simulator for Windows Mobile 6.0 and a Chinese-language device simulator (Windows Mobile 6 Professional Chinese image) we need to download it separately for installation.

5. After the Windows Mobile 6.0 SDK is installed, we can use Visual Studio 2005 to develop a smart device program for Windows Mobile 6.0. In the "smart devices" column, we will find that the "Windows Mobile 6 Professional" option is added, and with the template on the right, we can create five different types of projects.

6. If the error "Failure: Cannot create WScript shell object" is prompted during SDK installation, click OK. After installation, You need to execute the command line... Microsoft Visual Studio 8Common7IDE

The devenv.exein the directory, that is, key to includevenv.exe/setup. Then the installation is successful !!!

Another well-known hello world and DEMO

The following uses C # To develop a simple Demo.

Choose Visual C #> smart devices> Windows Mobile 5.0 Pocket PC> device application to create a project named DeviceApplication1.

Design a Form.

Edit the click event of button1

Private void button#click (object sender, EventArgs e)

{

Label1.Text = "Hello World ";

}

After the deployment is complete, select "debug"-"start execution (do not Debug)", and a prompt will be displayed to select the location to deploy, of course, select "CHS Windows Mobile 5.0 Pocket PC Emulator.

Click "deploy" and VS2005 will start to deploy the simulator. This process is slow. The status bar below VS will display a progress bar, and a small icon will appear in the center of the simulator screen, wait.

After the deployment is complete, the following message is displayed in the VS Status Bar: "deployed successfully". At this time, the program deployed on the simulator is automatically started. The installation location of this Program is in the "My device Program FilesDeviceApplication1" directory on Windows Mobile.

Click the button to change the text displayed.

In this way, a small Windows Mobile program is completed, and the development of Windows Mobile seems not very difficult, but only limited to the use of C #, if you use C ++ to develop local code, it is totally different in style, which makes people feel much more complicated.

By the way, using Visual Studio 2005 in the simulator comes with the "remote tool" for "remote amplification" is more convenient. Using Alt + PrintScreen directly cannot cut down the simulator image.

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.