导航

[智能设备]Visual Studio.NET 2003开发智能设备入门问题

Posted on 2005-12-15 11:56  xujh  阅读(1724)  评论(3编辑  收藏  举报

A.安装开发工具

安装准备:先安装Mobile Application Development Toolkit,并仔细阅读其中的内容 

1.Microsoft ActiveSync 4.1 - Worldwide English

2.Visual Studio.NET 2003

3.SDK for Windows Mobile 2003-based Smartphones

4.Emulator Images for Windows Mobile 2003 Second Edition-based Smartphone

5. Chinese Simplified Emulation Images.msi

6.Windows CE .NET Utilities v1.1 for Visual Studio .NET 2003

7.Windows Mobile Developer Power Toys

其他工具

Windows Mobile 5.0 SDK for Smartphone

Developer Resources for Windows Mobile 2003 Second Edition

eMbedded Visual C++ 4.0

Note: Use the following CD key when installing this software: TRT7H-KD36T-FRH8D-6QH8P-VFJHQ
eMbedded Visual C++ 4.0 SP4

B.部署失败的解决办法

 用.net 2003开发SmartPhone时,在部署的时候会出现如下的错误:

错误: 无法建立连接。请确保此设备已经与开发计算机建立了物理连接。
---------------------- 完成 ---------------------

    生成: 1 已成功, 0 已失败, 0 已跳过
    部署: 0 已成功, 1 已失败, 0 已跳过

解决办法:安装Windows CE Utilities for Visual Studio .NET 2003 Add-on package 后,到Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\WinCE Utilities\DelDesktopCryptKey目录下运行DelDesktopCryptKey.exe,清除当前用户的security key,问题可以解决。


D.EVC无法连接SmartPhone Device的解决办法

用ActiveSync连接SmartPhone没有问题,但用EVC连接SmartPhone时却报告

“The Microsoft ActiveSync reposrt the following error:Unable to load the device side components.Please check the server configuration settings.”

解决办法:运行C:\Program Files\Windows CE Tools\wce420\SMARTPHONE 2003\Tools>spdps /create /device ,为设备文件创建一个签名证书

程序运行要一段时间,依次出现以下提示

Processing files

Emulator files complete

Device files complete

原始文章:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/smartphone_security.asp