Our development tool is vs2008. Now we will start to build a Windows Mobile development environment. When developing any software, we need to install the SDK. However, mobile development is a little different from traditional software development. In addition to the SDK, we also need to install a simulator to facilitate debugging and running. Some also need to install the device connection software so that your software can be connected to the device synchronously.
The development environment of Windows Mobile Phone platform is set up in three steps:
1. Install synchronization software. If it is a 32-bit Windows XP system or later, install "drvupdate-x86". If it is a 64-bit Windows system, install "drvupdate-x32", and install "ActiveSync" for Windows XP system or below ".
2. Install vs2008 and install the SDK "Windows Mobile 6 Professional SDK refresh. MSI" developed by Windows Mobile ".
3. Install the simulator "Windows Mobile 6 Professional images (CHS )". The procedure is as follows:
Choose vs> Tools> device simulator Manager> CHS Windows Mobile 5.0 Pocket PC emulator in the window. Choose connect> File> Save exit.
We have set up the development environment above. Next we will make the first Windows MobileProgram.
[Instance 11.1] The first Windows Mobile program.
1. Choose vs2008> New> Project> smart devices> Windows Mobile> OK.
2. Open form1-> put a button in the form and change its text attribute to "display"-> double-click the button to enter the Click Event and write the followingCode:
Private void button#click (Object sender, eventargs E)
{
MessageBox. Show ("this is the No.1 project of Windows Mobile! ");
}
3. Click RUN> set the device simulator manager.