11

windowsmobile开发初级教程(流程篇)

整体开发流程

主要分为:硬件、Driver、RIL、应用程序。(在以后的文章中详细总结)
应用程序开发技术 windowsmobile1111

语言:C/C++(Native Code)     VS   C#/VB/…(Managed Code)

选择什么开发方式就选择什么语言,选择Managed Code,即在.Net CF下开发,但是实现有些功能你需要P/Invoke Win32   DLL。比如在CodeProject上的一个使

用C#编写的,在Windows Mobile上运行的iPhone界面程序,就调用了GDI API函数AlphaBlend来实现半透明。请看

关于本地代码开发和提高代码开发的比较有很多资料,这里不详细介绍了,它们的PK是开发效率和运行效率上面的PK。其实在一个项目中它们可能都是需要的。

VS2008

.Net CF
是微软.NET Framework 的子集合,专为Mobile Device上的Windows CE平台系列提供应用程序开发的支持。目前.NET Compact Framework最新版本为3.5,可运行在Windows CE 6.0以及Windows Mobile 6.0系统中。更多

Win32
我们团队用的最多的,开发效率低,直接使用系统的API,程序的运行效率比较高。因为Windows Mobile编程继承了Windows桌面编程风格,所以学习这方面知识你可以阅读《Windows 程序设计(第5版)》、《Windows核心编程(第5版)》等书籍。 

MFC
采用的倒是不多,简单的界面就直接编写个Win32应用程序,复杂一点的界面可以使用WTL或者使用.Net CF(第三方OpenNETCF提供更多的扩展)进行托管开发。
MFC对Win32的封装跟WTL很多地方是相似的,封装的机制值得学习,关于这方面的基础视频推荐:《孙鑫C++视频》。

COM
扩展微软自带的应用程序,比如IE、Windows Media Player等,需要使用COM技术。
不单单如此,微软的技术很多都是构建于组件技术的,所以值得深入学习,推荐《COM技术内幕》(侯捷和潘爱民都有翻译)。

ATL
Active Template Library(活动模板库),是一个以C++模板技术的类的集合,帮助你更方便的使用COM,创建ActiveX等。推荐阅读深入解析ATL(第2版)维基更多介绍

WTL
是一个用于研发的面向对象的C++模板函数库,它主要被开发作为MFC的轻量化替代品,以ATL函数库为基础。
一个使用WTL和使用MFC生产的应用程序的简单比较:更多

Version

Size (in KB on disk)

MFC Debug

2030

MFC Release

212

WTL Debug

420

WTL Release

56

我们再来看看Windows Mobile 6.5及以后带给我们开发人员的好东西

用户界面(静态的、动态的和可交互的)一直是开发中的难点,怎样提高用户体验一直是开发中不断挖掘的东西。以下两个技术就是为此而生的:

Silverlight for mobile

Q: What is Silverlight?
A: Microsoft Silverlight powers rich application experiences and delivers high quality, interactive video across the Web and mobile devices through the most comprehensive runtime available on the Web.
Built to integrate with Microsoft Servers, Developer and Designer Tools and supported by a thriving partner ecosystem, the Silverlight solution accelerates the results of compelling experiences through powerful technology.

Q: How does Silverlight for mobile integrate with the standards-based Web?
A: Silverlight for mobile fully integrates with the standards-based Web technologies. On the client side, there is seamless DOM integration and bi-directional integration between Silverlight and JavaScript. On the server side, Silverlight can communicate with any standards-based server side technology including REST, POX, SOAP, and more.
目前Silverlight for mobile还在开发中,让我们期待一下吧。
Widgets

在Mobile上,它吸引我的地方在于它可以仅仅做成一个独立的基于网络交互的应用程序,它使用的技术就像我当初写网页用的技术一样:XHTML、CSS、AJAX、JavaScript,这相当爽的啊。那是在Today界面上编写一个天气预报的插件那是多么的方便啊,想想现在得用C++写,实属没办法。请看

A good way to think of a Windows Mobile Widget is as a “Portable chunk of the web” or just basically a rich internet application.  Widgets are written using all the web technologies we know and love (HTML, CSS, AJAX, JavaScript) and, since they are powered under the covers by our new internet browser, they have full access to flash and other ActiveX controls available on the device (Like MediaPlayer).

Widgets最初源于苹果电脑的一个插件工具——Konfabulator,现在W3C发布了关于Widget的标准草案。请看

学习和参考资料

[1].Windows Mobile 6.0/6.5/7.0 Documentation(最主要的资料,如需要可以联系我,仅供学习之用。)

在你安装的Windows Mobile 6 Professional SDK目录下,有很多不错的Samples,初学者应该多阅读这里的代码:

windowsmobile1

里面的htm文件已经帮你归类了,比如:

SDK

你到论坛上面问的一些简单问题在这里都能找到答案。

2].Microsoft WebCast开发资料(包括视频、PPT和示例代码,这是个好东西,我喜欢。你可以使用ireaper小程序方便的下载和管理这些资料。):

 SDKK

[3].CSDN Windows Mobile论坛

[4].MSDN Windows Mobile论坛

[5].Windows Mobile中国官方网站

[6].CodeProject(好东西啊)

[7].维基百科嵌入式系统介绍

[8].其它资源请见施炯的博客:Windows Mobile Jump Start Guide

感谢克伟兄。

本文链接:江湖传闻 http://www.yybeta.com/1612.html

没有评论

第一个在本文留言。

发表评论

名字(必须)
邮箱(不会被公布)(必须)
网址

字体为 粗体 是必填项目,邮箱地址 永远不会 公布。

允许部分 HTML 代码:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URLs(网站链接)必须完整有效 (比如: http://www.yybeta.com),所有标签都必须完整的关闭。

超出部分系统将会自动分段及换行。

请保证评论内容是与日志或 Blog 内容相关的,灌水、攻击性或不恰当的评论 可能 会被编辑或删除。

    随机文章