`
isiqi
  • 浏览: 16029703 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

Visual Studio 2005中配置Windows Mobile 5.0开发环境

阅读更多
Visual Studio 2005中配置Windows Mobile 5.0开发环境
Visual Studio 2005无疑是开发Windows Mobile的最佳工具,其本身就集成了Windows Mobile开发环境,.Net Compact Framework也同时升级到了2.0,只是它自身所带的模拟器是Windows CE 2003的,有些落后时代了,呵呵。
本文就软件的安装和配置做一个简单介绍。

测试环境:
WindowsXP+SP2
Microsoft Visual Studio 2005+SP1

安装的软件包:
Microsoft ActiveSync 4.2
Windows Mobile 5.0 Pocket PC SDK
Windows Mobile 5.0 Emulator Images for Pocket PC - CHS
所需要的软件和补丁都可以从微软网站下载。

由于在安装时软件的先后安装顺序可能会影响到后续是否能成功安装或使用,因此在此给一个建议安装顺序:
1.Microsoft ActiveSync(一定要4.0版本之上才支持Windows Mobile 5.0)
2.Microsoft Visual Studio 2005+SP1(VS的安装就不多说了,只是打SP1补丁实在太慢了,我大概要等了2小时)
3.Windows Mobile 5.0 Pocket PC SDK.msi(安装后出现的模拟器和镜像都是英文的,虽然一样用,但自然有点不大爽了)
4.Windows Mobile 5.0 Emulator Images for Pocket PC - CHS.msi(安装完后模拟器和镜像就都成为中文的了)
如果还要安装for Smartphone版本的,步骤也类似。

全部安装完成后(好漫长的过程,没个半天搞不定吧),启动VS2005,菜单“工具”-》“设备仿真器管理器”,启动设备仿真器管理器,此时就能看见一长串列表,其中就有Windows Mobile 5.0 Pocket PC的中英文模拟器和镜像。

选中“CHS Windows Mobile 5.0 Pocket PC Emulator”,鼠标右键“连接”,就可以启动模拟器。


下面用C#开发一个简单的Demo演示。
依次选择“Visual C#”-》“智能设备”-》“Windows Mobile 5.0 Pocket PC”-》“设备应用程序”新建一名为DeviceApplication1的项目。

设计一Form如下图。

编辑button1的click事件
private void button1_Click(object sender, EventArgs e)
{
label1.Text = "Hello World";
}
全部完成后,选择菜单“调试”-》“开始执行(不调试)”,此时会提示选择要部署的位置,当然选择“CHS Windows Mobile 5.0 Pocket PC Emulator”了。

点击“部署”,VS2005就开始在模拟器上开始部署了,这个过程比较慢,VS下方的状态栏会有进度条显示,此时模拟器屏幕中央也会有一个小图标显示,稍加等待。

部署完成后VS状态栏会有“部署已成功”的提示,此时模拟器上会自动打开部署上去的程序。这个程序的安装位置在Windows Mobile上的“我的设备\Program Files\DeviceApplication1”目录下。

点击按钮,显示的文字就会改变。

这样,一个小Windows Mobile程序就完成了,Windows Mobile的开发看来也不是很难啊,不过仅限于使用C#,如果用C++开发本机代码那就是完全不同的风格了,给人的感觉要复杂很多。

顺便提一下,模拟器中的截图使用Visual Studio 2005自带“远程工具”中的“远程放大”比较方便,直接用Alt+PrintScreen是截不下模拟器的图的,呵呵。

分享到:
评论

相关推荐

    Visual Studio 2008卸载工具.zip

    但它不卸载 Visual Studio 2008 和 Visual Studio 2005 共享的组件。 =============================================== 手动卸载说明 转到“控制面板”并启动“添加/删除程序” 删除所有 Visual Studio 2008/...

    Windows Mobile平台应用与开发初步

    详细分析了Windows Mobile 5.0的架构,总结了它的新特性,成功搭建和配置了Windows Mobile 5.0开发环境,并在搭建的Visual Studio 2005下采用VC#语言,开发实现了手机终端无线信号测试软件,从而对基于Windows ...

    Visual Studio 2008 自动卸载工具

    但它不卸载 Visual Studio 2008 和 Visual Studio 2005 共享的组件。 手动卸载说明 转到“控制面板”并启动“添加/删除程序” 删除所有 Visual Studio 2008/代号 Orcas 产品的实例 按指定顺序删除任何剩余的...

    Windows Mobile编程起步.rar

    现在Microsoft发布了Visual Studio 2005,这使Windows Mobile编译环境的搭建变得简单的多。下面我就详细地说明搭建Windows Mobile SmartPhone 5.0开发环境及一个简单的程序生成。

    Msmq.rar_Mobile net_mobile_msmq_windows mobile

    MSMQ at Windows Mobile 5.0 sample and develop with Visual Studio .NET 2005

    移动开发 动手实验

    使用Visual Studio 2005 和 SQL Server 2005 开发 SQL Mobile 应用程序 61 练习 1: 在 Windows Mobile 5.0 应用程序中创建并使用 SQL 服务器移动版本数据库 61 练习 2: 在 SQL Server 2005 和 SQL Server ...

    使用VisualStudio2005设计设备应用程序的用户界面和数据

    本页内容简介设计基于WindowsMobile5.0的PocketPC的简单用户界面停靠和定位控件拆分器控件设置Tab键顺序更改设备外观设置更改目标平台可视窗体继承使用VisualStudio数据库工具结论简介每个VisualStudio的新版本都会...

    C#移动开发复习

    开发工具: Visual Studio 2008 Windows Mobile 5.0 SDK for Pocket PC Windows Mobile 5.0 SDK for Smartphone .NET Compact Framework 2.0 ActiveSync 4.5

    关于gis开发的ao资料

    关于ao资料 ... Visual Studio 2005, Windows Mobile 5.0 Pocket PC SDK, ActiveSync 4.0. ** For more information about this code sample, please see the Windows Mobile SDK help system. **

    wince5.0下使用SQLCE必须的文件

    C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v2.0\wce400\armv4 sqlce20.dev.ppc.wce4.armv4.CAB sqlce20.ppc.wce4.armv4.CAB 并在vs里添加SqlServerCe引用 c:\Program Files\...

    游戏梭哈源码 VS2005 Windows Mobile平台 C++

    开发环境为 Visual Studio 2005, 编译于PPC2003和WM5.0平台,可运行于模拟器或PPC真机中,界面还需改善,但牌面算法已经完整,可供参考。

    为SQL Server 2005移动版追加最终用户许可协议

    Microsoft SQL Server 2005 移动版作为Visual Studio 2005和 SQL Server 2005的组成部分提供给用户,或者作为用于移动应用系统开发的产品提供下载。您可在任意数量的移动设备上部署SQL Server 移动版, 前提是这些...

    喜羊羊文档编辑器 4.0 RTM

    本软件使用Visual Studio 2010 开发,是一个可以取代系统自带的记事本的文档编辑器,支持大部分文本文件格式。本软件需要Visual Studio 2008/2010 Runtime Library 、Windows Installer 3.5、.NET Framework 2.0 。...

    C# windows mobile 获得IMEI号和IMSI号

    在模拟器5.0上通过6.0一上模拟器不支持,但在真机6.0以上也通过。 使用Visual studio 2008工具

    WTL 9.1 5270 Beta 中文 汉化 中英文对照版

    WTL类库可以在下列开发环境中使用,VC++ 6.0,VC++ .NET 2002、2003,VC++ 2005、2008、2010、2012、2013、2015,以及EVC++ 3.0、4.0。WTL类库为Visual Studio提供应用程序向导组件。 The WTL classes are provided...

    基于Windows CE的超市预收款系统

    如今Windows CE 5.0也已成熟,更令人惊喜的是使用微软的Visual Studio.NET可以轻松地开发智能设备应用程序,而且它还集成了Pocket PC、Windows CE模拟开发环境。.NET Compact Framework是.NET Framework的子集,...

    asp.net知识库

    Visual Studio 2005 中的新 DataSet 特性 MySQL 和 .Net2.0配合使用 与DotNet数据对象结合的自定义数据对象设计 (二) 数据集合与DataTable 与DotNet数据对象结合的自定义数据对象设计 (一) 数据对象与DataRow ASP...

    Professional Microsoft SQL Server 2016 Reporting Services and Mobile Reports 代码

    All changes to the 2016 release are covered in detail, including improvements to the Visual Studio Report Designer (SQL Server Data Tools) and Report Builder, Mobile Dashboard Designer, the new ...

    精品搜索导航网站search纯JS源码

    建议使用VS Code(Visual Studio Code)并安装Live Server插件,否则无法处理json文件 部署服务器无其他要求 重要说明 Mozilla/5.0 (Linux; U; Android 9; zh-cn; MIX 2 Build/PKQ1.190118.001) AppleWebKit/537.36 ...

    search搜索导航纯JS源码下载

    建议使用VS Code(Visual Studio Code)并安装Live Server插件,否则无法处理json文件 部署服务器无其他要求 重要说明 Mozilla/5.0 (Linux; U; Android 9; zh-cn; MIX 2 Build/PKQ1.190118.001) AppleWebKit/537.36 ...

Global site tag (gtag.js) - Google Analytics