Mobile Software Development GETTING STARTED - Chinese Chess (1) 090 308

Recently obsessed with chess came from China. I'm playing strength is very general, but always felt life is like chess, every decision will affect the future development of the situation. Thoughtful person, after the potential is more dominant. Buckled down side was the life force. Just in February, when my phone using the almost two years of ordinary mobile phones Samsung HTC's P4550 replaced by a smart phone, nothing else wanted to install some games, then download coolchix, a foreigner Development Chinese chess game, it should be said that chess is not very high, but I still lost more than it won less and less willing to, then download the Chu and Han chess edge basic research methods and kill chess, feel helpful. Just recently I also see some information on the business model of mobile phone software is feeling a very potential market, then I wonder if it is to develop a similar Chu and Han chess edge of mobile phone software. We planned a month's spare time, to implement these features chess books, chess game for people to study with. And I want to try it, and then learn to develop technology blog, and then continue to develop next blog mode.

 

plan:

09/03/08 --- 09/03/14 master the basic techniques of using vc ++ development under windows mobile6. Including the use of IDE, debug, deploy, display api, touch screen api, able to draw out the board can move the flag.

--- 09/03/21 09/03/15 design and implement moves generator designed game record file structure, the read and write chess class.

09/03/22 --- 09/03/28 completed basic "chess study" function. With "players try to", "chess prompt select", "should the automatic" feature.

09/03/29 --- 09/04/04 adding a simple function of man-machine war.

 

I hope that this will leave some trace of knowledge, and enthusiasts for their own reference. Gossip on here, let's start technology live.

 

I use the HTC P4550 Kaiser is a smart phone, installed windows mobile 6.1 Chinese version, CPU is Qualcomm 7200, a rate of 400MHz, the screen size is 240x320, with touch screen and keyboard QUERTY. First wordy one, before the development of mobile phone software, software to locate the target device clearly down is necessary, this will involve a subsequent step choice of development tools, compilers, and other packages. So, as we get started, we put the best phone software target device category finalized, and on the development of this type of learning. Of course, the main reason is my phone a ah :).

 

First prepare the development environment. Since it is a windows mobile, so we of course were developed on windows pc. Development of windows mobile 6 operating system application requires Microsoft Visual Studio 2005 version of the above. The easiest is to download a VS 2008 express edition to go on the site, the best support vc ++ and c #. Then go msdn.microsoft.com/windowsmobile download windows mobile 6 SDK. After installing these tools we can begin.

 

If English is good, then we can look for some introductory presentation http://msdn.microsoft.com/en-us/windowsmobile/bb264341.aspx  "on An Introduction with the To Developing in the Microsoft Windows Mobile 6 ." If you bother to look, to see my blog, huh, huh.

 

First clear some common terminology for Microsoft's embedded operating system windows mobile 6, there are two types of devices:

The first category: windows mobile 6 professional device Windows MOBILE6 Professional Devices and windows mobile6 classic device. These devices contain often say that PDA, Pocket PC, because they have a touch screen and a full keyboard (such as QUERTY keyboard), much like a small laptop. If you have a cell phone feature, is windows mobile6 classic device.

 

 

The second category: windows mobile 6 standard deviceWindows MOBILE6 Standard Device. These devices without a touch screen, no keyboard, mostly mobile phones, smart phones is often said.

So pay attention, not to mention smart phone feel very powerful, in fact, I belong to the first category of Caesar, windows mobile6 classic device. Of course, these categories are Microsoft's operating system windows mobile6 terms.

 

Create a demo app project (TODO)

 

Simulator debugger, as shown below:

 

 

Problem: the need for a Chinese version of the simulator, otherwise the translation of the text in the simulator display is garbled. Find the next, there is no wm6 the Chinese image file, so just have to wait, first with the Chinese wm5 image as the emulator debug OS. The figure is a version of the simulator results wm5 ch:

 

The debugger can be used in two ways: the simulator and the physical device. Very simple, just select the corresponding target device in the "target device" drop-down list and plug in the phone line cable.

 

Will be carried out after the completion of debugging package, upload to the phone, the installation process. Of course, if the so-called green software, it would only need a simple copy to run the program on your phone.

 

Packaged tutorial reference: http://msdn.microsoft.com/zh-cn/library/ms228783.aspx

 

The key steps to create installation packages are as follows:

1, to create a "smart device cab project" under one "solution."

2, in a cab to the project "Property Pages" in the provider into English, otherwise an error when generating, say unicode not become Ascii code.

3, add "application folder" under "Project Output" content "main output."

4, if you want the program after the installation has quick links in the phone's "program" directory, then you want to add a "Programs Folder", and then right-click on the "Application Folder" "project outputs" under, create a shortcut way, and change the name to English in the property page. After right-clicking with a way to cut and paste the copied it to the next "Programs Files."

5, the project generates a cab, get a cchess_teacher.cab file.

 

Published 46 original articles · won praise 7 · views 80000 +

Guess you like

Origin blog.csdn.net/yangbo_hr/article/details/3968944