逆风飞扬  
顺风也好,逆风也罢,都是驾驭风力而已,君子性非异也,善假与物也。逆风飞扬,也能飞得更高,更远!

在进行mobile开发的时候经常会借助于模拟器来进行调试,若要连接模拟器调试就得修改ActiveSync的连接设置,将选项改成DMA方式。我因为系统的一些问题,这个DMA选项没有了,只有一个COM1选项了。查了一些资料说是模拟器的注册信息丢失的原因。从国外的一个网站上搜到了一个帖子,觉得不错就拿来用了。这是原帖子的地址http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=144089&SiteID=1
为了防止上面的地址实效,以后用不到了,就把内容也摘抄出来了。^_^
原文内容:
This usually happens if the ActiveSync plugin is not registered properly.  You can try one of the following and see whether it fixes the problem.
1. Restart AS or machine - to restart AS kill wcescomm.exe
(If the above didn't fix the problem try the following)
2. Uninstall AS and reinstall it again
(If problem still not solved try this)
3. Manually register the emulator and AS plugin. Execute the following commands on a cmd shell
   a. devicemulator.exe /register
   b. dvcemumanager.exe /register
   c. regsvr32 deviceemulatorproxy.dll
   d. regsvr32 serdmaasplugin.dll
   e. regsvr32 deviceemulatorbootstrap.dll
The .exe and .dll files could be found under "C:\Program Files\Microsoft Device Emulator\1.0" assuming VS is installed under C: drive. 
deviceemulatorbootstrap.dll could be found under "C:\Program Files\Microsoft Visual Studio 8\SmartDevices\Emulators\DeviceEmulator"

After performing the above steps, restart AS.

Thanks
Siva

为了方便注册,你可以写一个批处理文件来完成。

posted on 2007-06-06 12:48  逆风飞扬  阅读(973)  评论(3编辑  收藏  举报