[資源]Windows Mobile 開發人員新手上路指南

來源:互聯網
上載者:User
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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.