Original: http://www.cnblogs.com/xjimmyshcn/archive/2011/07/19/2111087.html
WinCE Simulator connects PC via ActiveSync 6.1 (i.e. Windows Mobile Device Center)
1. Start the WinCE simulator
Command line: start. \deviceemulator.exe wince Mirror \wince5.bin/memsize 256/video 480x272x16/sharedfolder. \ analog Card
2. Set ActiveSync
3. Simulator Insert Base
After inserting the cradle, the ActiveSync automatically starts and establishes the connection
Second, vs2005 connection simulator
VS2005 Menu "Tools-" Connect to Device "
After the connection succeeds, as shown in:
Third, the Debug program
Start debugging in vs2005, device select "Windows CE 5.0 Device", point "deploy"
WinCE simulator Operation Result:
Add:
1. ActiveSync cannot connect to the WinCE simulator
Sometimes there may be ActiveSync unable to connect WinCE Simulator, can be resolved as follows:
1) WinCE Simulator, start and set-up dial-up and network connection; New connection "My connection", connection type Select "Direct connection", Next, select Device "Serial over DMA", complete
2) WinCE Simulator, start and set-up control Panel->PC connection; Change connection mode to "my Connections"
3) In ActiveSync, connect settings, select "Allow USB connection", "Allow connections to any of the following ports" set to "DMA", "This computer is connected to" is set to "automatic", check "Allow automatic Device Authentication", click OK.
If "Allow connection to any of the following ports" is set to "DMA", you can change it and click OK. Then reset to "DMA" and click OK to trigger the settings change.
2, install NETCFv2.wce5.armv4i.cab to wince
NETCFv2.wce5.armv4i.cab in D:\Program Files (x86) \microsoft Visual Studio 8\smartdevices\sdk\compactframework\2.0\v2.0 Can be found under the \windowsce\wce500\armv4i\ directory.
Copy it to wince, and install it.
3. Deploy other files to the WinCE simulator
VS2005 when you debug a wince emulator, the program is deployed to%CSIDL_PROGRAM_FILES%\XXXX.
To deploy a file to wince, you need to make the following settings:
VS Connect Windows Mobile Simulator