如何在Visual Studio2005里调试Windows Mobile5

上一篇 / 下一篇  2007-11-26 11:51:59 / 个人分类:转载

Windows Mobile5(WM5)里的程序,真是废了一番功夫。手头只有visual Studio2003,不行,WM5只支持VS2005。处地偏远,暂时弄不到VS2005,只好去微软下VS 2005 Express,这是专门给学生等穷人用的免费版,功能基本完全,只是各种语言是分开的。Linux宝库Y9jo~_ |?a3x"F|
1, 先下了一个C#的部分(400多兆的ISO啊),再去下载Windows Mobile 5.0 SDK for martphonehttp://www.microsoft.com/downloads/details.aspx?familyid=DC6C00CB-738A-4B97-8910-5CD29AB5F8D9&displaylang=en
!L|;d%zk2T4VI0装完了 VS 2005 Express,确发现Windows Mobile 5.0 SDK for martphone不能安装,找了半天,在微软的论坛里发现这么一句话:The Express Editions do not support Mobile Device development. You have to install at least Visual Studio 2005 Standard Edition. 晕死,白下了。老板又拿来一个VS2005Beta版,兴匆匆安上,连程序都打不开--过期了。
w%Ft5@'qj0没办法,只好等了几天,才弄到VS2005的正式版,不容易啊,安装好VS2005后,再安装
Windows Mobile 5.0 SDK for martphone就没有问题了。但是还要安装Windows Mobile 5.0 SDK for martphone Pocket PC, 进http://www.microsoft.com/downloads/details.aspx?familyid=83A52AF2-F524-4EC5-9155-717CBE5D25ED&displaylang=en一看,竟然要收费了。难道就这么被微软剥削吗?不,劳动人民是有办法的。Linux宝库5h!m e(^5z(B.w
http://msdn.microsoft.com/windowsmobile/downloads/resourcekit/default.aspx下载Windows Mobile 5.0 Developer Resource Kit,这是一个WM5的工具包,里面有如下不少好冬冬:
|6d2J[W4SK {0    * Visual Studio 2005 Professional Edition (90-day trial)*(假的,骗人,根本没有,也用不着了)Linux宝库N5\-N"N_
    * Windows Mobile 5.0 SDKs for Pocket PC and SmartphoneLinux宝库 uFE&\H;]5N)Y z L
    * ActiveSync 4.1
uMS$j0~u]TkQ/M0    * .NET Compact Framework 2.0Linux宝库Z#\C)D2R j
    * Localized emulator images(也没有) and other useful developer toolsLinux宝库,L`Q#uy)~.JP
    * SQL Server 2005 Mobile EditionLinux宝库8ZXc4o!Hx'{RZ
看到没,Windows Mobile 5.0 SDKs for Pocket PC。不过很大,900MB,为了免费,忍了!Linux宝库,}B?w3WI6n
下完以后安装完后找到安装目录,进 ..usr\Windows Mobile 5.0 Developer Resource Kit\content\Developer Tools\Windows Mobile 5.0 SDKs Tools,就可以安装Windows Mobile 5.0 SDK for Pocket PC.msi了。Developer Tools里还有ActiveSync 4.1,这是让PDA真机和电脑联机的软件,当然,可以去http://www.microsoft.com/downloads/details.aspx?familyid=7269173A-28BF-4CAC-A682-58D3233EFB4C&displaylang=en下载ActiveSync 4.2最新版本。Linux宝库5Y+?h N+uACx
content里还有很多实例和教程,不可多得的资料啊。900MB没白下。Linux宝库}&Z+k D+d
如果如果要安装中文版的模拟器还要安装Windows Mobile 5.0 Emulator Images,Smartphone的在这里:http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=52fed581-8f8d-4c46-9966-4832098191b7Linux宝库;Io2br.z j"X
下载相应的。Linux宝库-dV7F I,s0@3b\ E
For PocketPC的还没找到免费的,谁可以提供连接?
Ot$x!ff0f0Linux宝库K!iN[$ealT([7|^F
下面就是VS2005里的界面。(不能上传图片?)
HpV%R^I#Y#k0M0Linux宝库6V]E9g?%@(~.M
2,如果想让WM5模拟器连上网络,怎么办?Linux宝库(}}YI8pD H$G-W b
Linux宝库Y*UYp3D*bE

http://www.microsoft.com/downloads/details.aspx?familyid=DC8332D6-565F-4A57-BE8C-1D4718D3AF65&displaylang=en下载Virtual Machine Network Driver for Microsoft Device Emulator,模拟网络连接。Linux宝库Y.TZy]?


nK7]l Oa8Q'w0
4X]NeW,a03,如果不想装VS2005,只想装一个WM5的模拟器,怎么办? 微软还是很周到的,下载 Microsoft Device Emulator 1.0,地址:http://www.microsoft.com/downloads/details.aspx?FamilyId=C62D54A5-183A-4A1E-A7E2-CC500ED1F19A&displaylang=enLinux宝库6W q(gKY
默认安装路径:
C:\Program Files\Microsoft Device Emulator\1.0(不能选择安装路径)。
*]7\T#{+e[m6]3M0然后就可以选择模拟器运行了。Linux宝库|4b!FR7Us B

:yER];Y04,如何调试模拟器上网。
S(|"i0Q.v$zi~W0参照下图步骤:Linux宝库bMc a:M I(|$i"@,P
First "Settings" then "Connections"Linux宝库3\TA)e2th[8M
Linux宝库"Gn#{-|&A)D

`Mf@+b6I~0Then select "Advanced", then "Selected Networks" then in the first drop down select "My Work Network"
qX X+R}upW:E:^0Linux宝库$^9n Q%F~iF
好了,可以上网了Linux宝库6y(L)Kp+gC;} ~h
Linux宝库c6l-K(R{~@5NH

v M6s,Z7Q-h,g \05, Microsoft Device Emulator 2.0 Beta - Community Technology Preview,下载地址http://www.microsoft.com/downloads/details.aspx?familyid=13F5DE85-30CD-4506-9C5B-A2068FA1EE9E&displaylang=en这是包含Windows CE 6.0新特性的模拟器,可以试试。Linux宝库 PN:^-q;s8jxIWU
Linux宝库+ujuia]

_6l^AYGA5i{0Linux宝库@ S]1q,J(G
Reference:Linux宝库 sL'BG_
http://www.jasonlam604.com/tipshints_mobile5_standalone_emulator.php
L waC U5F0http://news.csdn.net/news/newstopic/22/22102.shtml
!X5]7rr,RV"H;Q0

TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar