The RMC program is being debugged these two days. This is a remote desktop program under WinCE. Because there is no time for adjustment in the unit, you can only go home to do it, but there is no lab board at home. Fortunately, Windows CE has a simulator. You can use the simulator instead of the lab board to debug the program. Even so, I still encountered some problems, but they all solved them one by one. I will share them with you.
At first, EVC4 + SP4, VS2005 + SP1 + Platform Builder6.0 + R2 and other Windows CE development tools were installed on the host. Since there is no lab board, we can customize a Chinese WinCE6.0 operating system and then export the SDK. Isn't that a problem solved?
The train of thought is correct, but the problem can be found at first. PB6.0 does not support MFC. At present, many programs are based on MFC. What should I do to debug the MFC program? After thinking about it, the system needs to support MFC. In fact, it only needs several DLL files. Just add the DLL files related to MFC to NK. bin? Find several MFC-related Dll Files in the directory of Program Files \ Microsoft Visual Studio 8 \ VC \ ce \ DLL \ armv4. It seems that Microsoft has not completely abandoned MFC, just to make it less usable. Copy these DLL files to the BSP directory and modify the platform. bib file. The first problem was solved smoothly. When MFC is added, the. NET Compact Framework must be selected, leaving a back path. Pai_^
To allow the system to support ActiveSync, the corresponding components are added to the CATALOG, which is relatively simple. The problem is that after the system is started, you have to create a connection and modify the "PC connection" option. You cannot solve this problem. After the connection is established, use the driver debugging assistant to export the corresponding Registry Information and put it in platform. reg. In this way, the system after re-compilation can directly use ActiveSync. Note that you need to set ActiveSync on the host to support the DMA connection mode during use.
At this point, the system is finally customized. The compilation and download tests basically achieve the expected results. Next, export the SDK. In the process of SDK import, it was found that MFC does not support related options. This is not a problem. The exported SDK does not support MFC, although VS2005 supports Using MFC to Write Device programs. You have to try to add MFC. Or there is an atlmfc directory under the directory of Program Files \ Microsoft Visual Studio 8 \ VC \ ce. This includes the header file and library corresponding to MFC. Add related items to Additional Folders on the property page of the custom SDK, compile and install the SDK, and test whether everything works normally. Note that only the armv4I directory is selected when you add MFC. You can select hundreds of megabytes for all directories.
So far, we have built a complete Windows CE development environment on a single machine, not only installing a lot of development software, but even hardware! Many students who want to learn Windows CE development do not have to bother and bother selecting boards. It is also a good option to start learning with a simulator.
Here refer.
Finally, the Shared Folder provided by Device Emulator can achieve file sharing and the network is no problem. Even the serial port printing information can be simulated using text consol window. We can directly use VS2005 to tune the program, or use EVC to write the program, and put it in the simulator of WinCE6.0 through file sharing. The debugging method for adding printing information can also be used here. In addition, the custom SDK can be downloaded at http://download.csdn.net/source/563215.