Windows CE 5.0 emulator

Source: Internet
Author: User

Wince 5.0 emulator is used to simulate the wince device when debugging the wince program, so that it does not need to be connected to external devices during development.

1. Current:
Http://www.microsoft.com/downloads/en/details.aspx? Familyid = a120e012-ca31-4be9-a3bf-b9bf4f64ce72

There is nothing to say about the installation process.

2. After the installation is complete, run the following command line instead of running it directly:
Emulator_500/ceimage NK. CEM/video 800x600x16/Ethernet virtualswitch

By default, the screen is small and uncomfortable, and the network is not supported by default. This is a big problem. The last parameter of the above command is to instruct the simulator to use the nic of the development machine. note that the simulator can only use the first network card of the development machine. If there are multiple network cards on the development machine, check whether the target network card is the first device. If not, disable other NICs. (simply put, if you want to use a wireless network card, you can simply disable another wired network card)

3. Install. NET Compact framework

Because the Windows Mobile Device Center cannot detect the simulation device, vs cannot directly connect to the simulator (or I don't know, if you can, please enlighten me), so you need to manually install. Net cf.

First, after running the simulator, you can set the shared directory in the emulator menu, as shown in:

Open my device, and the shared menu appears in the form of storage card:

Open the virtual memory card to access the shared directory of the development machine.

Then in the host's c: \ Program Files \ Microsoft. find netcfv35.wce in the net \ SDK \ compactframework \ v3.5 \ WindowsCE directory. x86.cab: copy it to the shared directory. At the same time, it is best to copy netcfv35.messages under the diagnostics subdirectory. en. the cab is also copied together. The second installation package provides support for exception information display. If the second package is not installed, you cannot view the specific exception information once the program throws an exception. (If you want to install.. Net CF 2.0, copy c: \ Program Files \ Microsoft. net \ SDK \ compactframework \ V2.0 \ WindowsCE \ wce500 \ netcfv2.wce5 under x86. x86.cab)

Then, copy the installation file to any directory on the simulator and double-click it to start the installation. The installation can be completed without modifying the path.

Now we can directly execute our program. change the shared directory to the DEBUG directory of the project. In this way, you can directly open the storage card on the simulator to display the executable file and double-click it to execute the file, after each project is modified, press F6 to re-compile and run it on the simulator.

 

4. in addition, after each use, select Shutdown From the emulator menu, and then select Save state. However, if you want to load the Save result next time, you can no longer open it as you did for the first time.

After the simulator is saved and exited, there will be a folder name under documents/my virtual machines (if multiple times are saved, there will be multiple) similar to {641834f7-7bd7-4a7b-b2ce-d11a2c48e93e, this is the last save result. You need to use the command emulator_500/vmid {641834f7-7bd7-4a7b-b2ce-d11a2c48e93e} to load the saved VM. Here we found a bug. If the parameter/sharedfolder is used during loading, it does not work after loading. I don't know why, maybe it has something to do with win7? However, it is a bit annoying to reset the shared folder every time, but it is still acceptable.

The command is similar to the following:

Emulator_500/vmid {641834f7-7bd7-4a7b-b2ce-d11a2c48e93e}/sharedfolder "D: \ Temp"

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.