[资源]Windows Mobile 开发者新手上路指南

Part 1.开发环境的搭建


软件安装顺序:

1. 安装Microsoft ActiveSync 4.0以上版本

2. 安装VS2005

开发Pocket PC需安装Windows Mobile 5.0 Pocket PC SDK

开发Smartphone需安装Windows Mobile 5.0 Smartphone SDK

Mobile 5.0环境配置:

1. 模拟器与Microsoft ActiveSync同步:

A.启动VS2005,在Tools->Device Emulator Manager,选择一个需要启动的模拟器,双击或者按右键,选择“Connect”,即启动模拟器。



B. 当模拟器启动后,在Device Emulator Manager中,右键该设备,选择“Cradle”,即可与Microsoft ActiveSync同步。



2. 模拟器上网:

启动模拟器后,只要PC机连接网络,模拟设备即能上网。

3.可能出现模拟器与Microsoft ActiveSync无法同步的现象,这种情况很可能发生,出现该情况,可以关闭VS2005,关闭Device Emulator Manager,然后再重新启动即可。
 

Mobile 5.0 最初的开发程序:

在Pocket Pc上新建1个应用程序:

在File->New->Project中可以选择Pocket PC或者Smartphone的Device Application



项目新建以后所看到的Form的界面是和真实设备的界面完全一致。

在Form上放置1个TextBox后,将值改成Pocket PC,运行该程序



在Pocket Pc右上角的有2种按钮,叉和ok,叉代表最小化,ok代表关闭。最小化程序会使得程序占用内存,在此觉得微软的操作系统提供的程序有些都是最小化,没有释放内存,会使得系统越跑越慢。

将最小化变为ok,通过设置form的属性MinimizeBox,true为最小化按钮,false为ok按钮。

在Smartphone中没有上述的变化,在Smartphone中,如果不添加menu中的事件来结束程序的话,那程序始终会以最小化方式保留在系统内部。

更改应用程序的平台:

选择project,右键,在菜单中选择“Change Target Platform”



在选择平台中,选择一个你想改变的平台,按OK即可

注:Pocket Pc和SmartPhone平台改换后,要更改下列内容:

1. 控件的大小

2. 某些特定控件在SmartPhone中不支持,如Button

3. 某些托管API。SmartPhone中,所支持的API没有Pocket PC多

开发Mobile需要注意:

由于是基于移动设备的,所以无论cpu还是内存来说,都和PC有很大差距,所以要求消耗较少的内存开销,另外相比PC来说,所支持的API是非常少的,需要经常查SDK。

Part 2. 开发工具与资源下载

1) Software Development Kit

Windows Mobile 2003 SDK for Pocket PC (直接下载)
Windows Mobile 2003 SDK for Smartphone
Windows Mobile 5.0 SDK for Pocket PC (直接下载)
Windows Mobile 5.0 SDK for Smartphone
Windows Mobile 6 SDK
Windows CE 5.0: Standard Software Development Kit (SDK)

2) .NET Compact Framework

.NET Compact Framework 1.0 SP3 Redistributable
.NET Compact Framework 2.0 Service Pack 1 Redistributable
.NET Compact Framework 2.0 Service Pack 1 Patch
.NET Compact Framework 2.0 Service Pack 2 Redistributable

.NET Compact Framework 3.5 Redistributable
Power Toys for .NET Compact Framework 3.5

3) SQL Server CE

SQL Server CE 2.0 Server Tools SP4
SQL Server 2005 Compact Edition

SQL Server 2005 Compact Edition Tools for Visual Studio 2005 Service Pack 1
SQL Server 2005 Compact Edition Server Tools
SQL Server 2005 Compact Edition Books Online (March 2007)
SQL Server 2005 Compact Edition Access Database Synchronizer
SQL Server Compact 3.5 for Windows Desktop
SQL Server Compact 3.5 Books Online and Samples
Synchronization Services for ADO.NET Books Online
ADOCE 3.1 for Windows 3.0 SDKs

4) Device Emulator

Standalone Device Emulator 1.0 with Windows Mobile OS Images
Microsoft Device Emulator 2.0 Standalone
Microsoft Device Emulator 3.0 Standalone
Virtual Machine Network Driver for Microsoft Device Emulator
Microsoft Windows CE 5.0 Device Emulator

5) Emulator Image

Emulator Images for Windows Mobile 2003-based Pocket PC Development 
Emulator Images for Windows Mobile 2003-based Smartphone Development
Emulator Images for Windows Mobile 2003 Second Edition-based Pocket PC Development
Emulator Images for Windows Mobile 2003 Second Edition-based Smartphone Development
Localized Windows Mobile 5.0 Pocket PC Emulator Images
Localized Windows Mobile 5.0 Smartphone Emulator Images

6) eMbedded Visual C++

eMbedded Visual C++ 4.0
eMbedded Visual C++ 4.0 SP4

7) OpenNETCF

OpenNETCF Smart Device Framework v1.4
OpenNETCF Smart Device Framework v2.0

8) Mobile Client Software Factory

Mobile Client Software Factory – July 2006
Architecture Overview for Mobile Applications
UI Design Considerations in Mobile Applications
Designing Mobile Applications in an Occasionally-Connected World

9) Other Tools

Microsoft Windows Mobile Device Center 6.1 for Windows Vista (32-bit)
Microsoft Windows Mobile Device Center 6.1 for Windows Vista (64-bit)
Microsoft ActiveSync 4.5
Redistributable Server Components for Windows Mobile 5.0
Device Security Manager PowerToy for Windows Mobile 5.0
Windows Mobile Network Analyzer PowerToy
Microsoft Smart Devices Remote Tools Framework Powertoy 1.0
Windows Mobile Developer Power Toys

10) Resources
Windows Mobile 5.0 Developer Resource Kit
Microsoft Mobile & Embedded DevCon 2006 DVD
Windows Mobility Marvels
'Mobile Line of Business Solution Accelerator' kit

Part 3.新手Starter Kits

Starter kits:
http://msdn2.microsoft.com/en-us/windowsmobile/bb264330.aspx
Video resource:
http://msdn2.microsoft.com/en-us/windowsmobile/bb264341.aspx

PS:
以上大部分整理自appleseeker和帅哥黎的blog:
http://www.cnblogs.com/appleseeker/archive/2006/12/11/588895.html
http://www.cnblogs.com/upto/archive/2007/03/13/mobile-development-tools.html



posted on 2008-02-05 23:05  J.D Huang  阅读(4014)  评论(4编辑  收藏  举报