Differences between wince and winnt

Source: Internet
Author: User

Http://topic.csdn.net/u/20090907/16/906a6c38-3a60-45be-980b-3f1ba1a26911.html

I have been developing mobile for a while, summed up some experience, and now I will share with you.

1. Differences between. NET Compact framework (. net cf) and. NET Framework (. NET:
. Net CF is a cropped. Net, which simplifies a lot of content. As you can imagine, the space of Wince is relatively small, so if you run it. net is certainly a lot of inconvenience, and the wince system evolved from Win95, after all, unlike the current NT System, so. net CF only inherits. net.

2. wince and WINNT (XP, Vista ...) Difference
Wince is a solution for Microsoft mobile systems. That is to say, the mobile phones and PDAs we use are all running wince. We usually see that pocketpc and smartphone are dedicated based on WinCE system transformation, and the underlying layer is based on wince. The real interfaces of the wince system are different from those of the pocketpc and smartphone systems, similar to those of the real Windows system. There are also the Start menu and control panel. If you want to run. Net CF developedProgramInstall the. net cf package first, which can be found under the smartdevice/SDK of vs2005. It is a. cab file. It should be wince5 or another. cab. I don't remember it. You can look for it. Copy this file to wince and double-click it to install it.

3. ActiveSync
This software is dedicated to connecting PC and wince mobile devices. Developing wince software is also frequently used. Its main function is to transfer files between two systems. However, the transmission rate of ActiveSync is relatively slow. If you want to transmit large files, it is better to directly use the card reader + SD card. ActiveSync generally uses USB ports to connect to the device, and also installs the driver of the device. If it is a mobile phone, the mobile phone manufacturer should provide drivers. If it is a wince Development Board, the manufacturer should provide drivers. After plugging the device into the USB port, the system will prompt you to install the driver. Then install ActiveSync. After activating ActiveSync, you can open "mobile devices" on my computer and copy files.

4. Simulator
After vs2005 is installed, there will be a pocketpc simulator, that is, the PDA. For mobile phones, there are also wince devices that do not have. This requires you to go online. Wince Rom is generally used on websites and forums of GPS navigators. It can be downloaded. There is a Microsoft enumlator folder under program files, which contains a simulator program. double-clicking can teach you how to use it. With Rom, you can use it. After starting Rom, you can set the shared directory in the menu. After the configuration is completed, it will be mapped to the storage card or memory card in the simulator. For convenience, you can set the shared directory to your program's OBJ \ debug, so that after each compilation, you can directly double-click the test in the simulator.

5. Development considerations
As mentioned earlier, not all. NET functions are available under. Net cf. So pay attention to it during development.
For example,
. NET Has graphicspath, But. Net CF does not.
. Net... Do not remember
You can check it by yourself. Just click it and it will all come out ^_^

6. Memory
In PC development, memory is seldom considered. Generally, it doesn't matter after the new version. As for GC, it doesn't matter when memory is recycled. The system still has several hundred MB of memory, which is enough. This issue should be considered in wince. Because mobile devices generally have a relatively small amount of memory, from dozens of megabytes to dozens of megabytes, some good mobile phones also have more than one hundred megabytes, so they need to be released immediately when used. Therefore, this is frequently used:
Using (bitmap BMP = new Bitmap (240,320 ))
{
//... The system will automatically recycle it after it is used up, because the using
}
Also, if you cannot use using, you must dispose (). However, do not dispose () when using is finished.
The globalmemorystatus () API can be viewed. There are similar tutorials on the Internet to teach you how to use them.

7. API
In the XP system, API functions are generally stored in kernel32.dll and user32.dll. In wince, basically all are in coredll. dll. Therefore, you need to write [dllimport ("coredll. dll")]

8. Input Method
If your program needs to input Chinese characters, this is troublesome. There are three options.
First, you can use the input method that comes with wince, but it may be "success.
Second, you can choose popular input methods on the market, such as Hanwang and mengyi. However, most of them are charged, and few are free and open-source ....
Third, Do It Yourself (in fact, it is not difficult to introduce it later)
For commercial software, I think the commercial input method is reliable. After all, it is a product of other people. If it is not a commercial software, it is not difficult to do the input method by yourself.

9. Special Effects)
The so-called stunt is nothing more than a combination. It is an organic combination of input (touch screen) and display. That is, we can see that iPhone, HTC Touch HD, and other high-end mobile phones provide the corresponding function through the touch of fingers. For example, iPhone slide and unlock, and contacts slide and scroll. In fact, these functions are implemented in two ways.
First, capture the system mouse, that is, the touch screen event, and then process it. The mouse hook is used here.
Second, the onmousedown, onmousemove, and onmouseup events are processed in this window.
In fact, the second method can be used for simple programs. Let's take an example of processing a sliding contact:
First, record the mouse position and the key time (system. environment. tickcount) in onmousedown, and judge the position when the mouse is lifted and the time difference between the time when the mouse is pressed under onmouseup. If the time difference is less than a certain value, for example, 300 milliseconds, and the moving distance is greater than a certain value, for example, 80 pixels, it indicates that the finger is sliding once, you can perform corresponding operations. And so on, everyone is smart, and it should be difficult.

10. Graphics
Graphics is used for graphics, including onpaint and onpaintbackgroun. Use bitmap to map to grpahics, and then remove the content in the onpaintbackground function. In this way, the screen will not flash. As for frame rate, it depends on the efficiency of making a picture. It is best to look at the game development and refresh techniques. For example, dirty zone.

11. No more than 11, because I did not say anything. Basically, I know it. Here, I have a deep understanding of "Dao yi ti, it's too embarrassing to show off the dew here. If something is wrong, you may not get used to it. You just need to scold me for a few times ....

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.