Windows Mobile 5.0 (1)

Source: Internet
Author: User

Since last week, I began to systematically learn Windows Mobile 5.0, hoping to learn more about mobile development.

Mobile 5.0 development Configuration:

Software installation sequence:

1. Install Microsoft ActiveSync 4.0 or later

2. Install vs2005

To develop a Pocket PC, you must install the Windows Mobile 5.0 Pocket pc sdk.

Windows Mobile 5.0 smartphone SDK must be installed to develop a smartphone.

Mobile 5.0 environment Configuration:

1. synchronization between the simulator and Microsoft ActiveSync:

A. Start vs2005. In tools> device emulator manager, select a simulator to be started, double-click or right-click it, and select connect to start the simulator.

B. After the simulator starts, right-click the device in device emulator manager and select "Cradle" to synchronize it with Microsoft ActiveSync.

2. online simulator:

After the simulator is started, the simulated device can access the Internet as long as the PC is connected to the network.

3. The simulator and Microsoft ActiveSync may fail to be synchronized. In this case, you can disable vs2005, disable device emulator manager, and restart the system.
 

Mobile 5.0 initial Development Program:

Create an application on the Pocket PC:

In file-> New-> project, you can select the device application of the Pocket PC or smartphone.

After the project is created, the page of the form displayed is exactly the same as that of the real device.

Place a textbox on the form, change the value to the Pocket PC, and run the program.

There are two buttons in the upper-right corner of the Pocket PC: the fork and the OK button. The fork button indicates to be minimized, and the OK button indicates to be disabled. The minimal program will make the program occupy the memory. Here, I feel that some of the programs provided by Microsoft's operating system are minimized. If the memory is not released, the system will be slower and slower.

Set the form attribute minimizebox, true to the minimization button, and false to the OK button.

There is no such change in smartphone. In smartphone, if you do not add events in the menu to end the program, the program will always be kept within the system in a minimal way.

Change the platform of the application:

Select project, right-click, and select "change Target Platform" from the menu"

On the platform selection page, select a platform you want to change and press OK.

Note: after changing the Pocket PC and smartphone platforms, you must change the following content:

1. widget size

2. Some specific controls are not supported in smartphone, such as button

3. Some managed APIs. In smartphone, the supported APIs are not as many as Pocket PCs

Note the following when developing mobile:

Because it is based on mobile devices, there is a big gap between CPU and memory, and there is a large gap with PC. Therefore, it requires less memory overhead. In addition, compared with PC, few APIs are supported, so you need to check the SDK frequently.

Supplement vs2008 development environment:
In vs2008, there are some differences from 2005 (when creating a project)

After you select smartdevice and click OK, the page for selecting platform appears, asking you to confirm whether it is wm5, wm6, or something else.

Select the platform in the upper-right corner of the page. Then select a project.

Related Article

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.