Create a program for your WM mobile phone (1) Build a shelf

Source: Internet
Author: User

I always wanted to make software for my mobile phone and finally made up my mind to study it.

This post is the first step, from creation, testing, release, to the last installation on the mobile phone, there is no substantive content, purely literacy.

 

Development Environment: VS 2008, Windows Mobile 5.0 SDK (self-contained in)

Test environment: P800 and wm6.1

 

1.ProgramDevelopment

New project <smart device project

Drag two buttons, get a statusbar, add a vertex event, click the simulator (for example) in the upper left corner, and run the task. The status is displayed in the lower left corner. Build the task first, and then depolying ......, In the displayed simulator window, wait for a short while until the status shows deply succeed and the program you just wrote is run.

 

2. Test on mobile phone

Connect the P800 to your computer, ensure that Microsoft ActiveSync is installed, and then select the connection device in the upper left corner (for example ):

Click "colse". Then, in the simulator, Larry selects the third, windws mobile 5.0 Pocket PC device R2. Run the command again, it's just this time that I ran the program on my mobile phone.

 

3. Publish a program

It cannot be directly released. You need to add a cab project.

Create another project in the same solution. For example, if there are two cab projects, select the one next.

Right-click the added cab project and add <project output

Select the Add project window that appears, as shown in figure. All items are selected by default. Just click OK.

Then create a shortcut. For example, in file system, right-click Application folder and right-click primary output... on the right ......, Select create shortcut ......, Right-click the file system on target machine on the left side, add special folders, Select Start Menu Golder, and set the saved cut... Drag it to this folder and Bulid the cab project to complete.

 

4. install it on your phone!

The. cab file is in the debug folder of the cab project. copy the file and put it in your mobile phone to install it. Haha.

It can be run after testing.

 

References:

1. Drill: Package smart device solutions for deployment

Http://msdn.microsoft.com/zh-cn/library/zcebx8f8 (V = vs.90). aspx

2. Creating Your first Windows Mobile 6 Application with Visual Studio 2008

Http://code.msdn.microsoft.com/WM6YourFirstApp/Release/ProjectReleases.aspx? Releaseid = 3320

 

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.