Using the simulator in a network-free environment
If you use the simulator to debug the Windows CE using the simulator on a computer without a network connection, the debug environment will give a "connection timeout" error prompt after the connection is long. In fact, this is because the communication between the debugging environment and the simulator uses a network connection method, and there must be available network connections.
Today, this requirement can't be found in the network. But there are some people need to debug procedures with simulator on machines without a network connection, such as me. Solutions in Microsoft documents: Microsoft Loopback Adapter. In fact, it is a virtual network connection. Let us take a look at how to use loopback adapter to debug the network communication program in a stand-alone environment.
Debugging environment: Windows 2000, Embedded Visual C 3, Pocket PC 2002 Emulator. Programs that need to be debugged: Chatter / Chatsrvr, this is a Microsoft-provided network communication program, Chatter runs in the Pocket PC environment, while Chatsrvr runs in the Win32 environment. This program can be found under X: / Program Files / Windows CEOOLS / WCE300 / MS Pocket PC / Samples / MFC.
First, let's install Loopback Adapter.
1. Press "Start" - Settings - "Control Panel", select Add / Remove Hardware "wizard.
2. Select "Add / Exclude Device Fault".
3. In the "Select Hardware Device" list, select "Add new device".
4. Select "No, I want to select hardware from the list."
5, select "NIC".
6. Select Microsoft in the "Manufacturer List", select Microsoft Loopback Adapter (Figure) in Network Card.
7, complete.
We can see a local connection in the properties of the network connection. If there is a real network connection on your machine, then loopback adapter is equal to a network card with your machine. For more information about Loopback Adapter, please see http://support.microsoft.com/support/kb/articles/q236/8/69.asp.
Now we can configure the IP address of the virtual network card and the subnet mask, as shown below:
The following work is to compile Chatsrvr in VC6, open the listener. Then start the Chatter in the simulator. This can debug the network communication program in a non-network environment.