版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、如何在Pocket PC上开发优秀应用程序,张伟伟微软(中国)公司 企业客户支持部,课程安排,Windows CE 的简单介绍 怎样构造一个优秀的Pocket PC应用程序? 构造Pocket PC上的Web应用程序 使用emVT工具开发 使用 eMbedded Visual C+ 编程 附录:使用 eMbedded Visual Basic编程,Pocket PC and Developers,Pocket PC 要素 - 目前已经有超过2百万台Pocket PC售出 140,000 开发人员已经或正在使用我们的SDK和开发工具 上千个已发布的应用程序 2,600+ 合作伙伴在 “Mobil
2、e Solutions Partner Program”,OEM Hardware,Embedded Shell,Applications,Microsoft,OEM,ISV, OEM,Windows CE 架构,Pocket PC应用程序架构,“Portable Executable” (PE) 文件格式 同样的 EXE 和 DLL 文件格式 你可以使用原来的开发工具 演示 DUMPBIN /ALL Examine Imports on Application/DLL 用样的内存访问 API 没有 global heap 64k 虚拟内存分段,Pocket PC 结构图(Block Diag
3、ram),WinCE 3.0: Win32, OLE, Winsock, etc,VB MFC ADO ATL MSMQ,你的应用程序,GameX,WinInet/URLMon,pIE,HTML JScript XML/XSL Flash,Pocket PC Shell APIs,POOM,怎样构造一个优秀的Pocket PC应用程序?,Pocket PC 设计规则,菜单在底部 单实例(Single Instance) 单点击(Single Click) 使用文字替代图标 Tap Pocket PC (aka Rapier) Mozilla/2.0 (compatible; MSIE 3.02
4、; Windows CE; 240 x320) browser=Pocket IE version=4.0 majorver=#4 minorver=#0 platform=Windows CE width=240 height=320 cookies=TRUE frames=TRUE backgroundsounds=TRUE javaapplets=FALSE javascript=TRUE vbscript=FALSE tables=TRUE activexcontrols=TRUE,Pocket IE 需求,Pocket IE 的HTTP 请求信息, UA-pixels: i.e. 2
5、40 x320 UA-color: mono2 | mono4 | color8 | color16 | color24 | color32 UA-OS: Windows CE (POCKET PC) - Version 3.0 UA-CPU = i.e. MIPS R4111,探测 Pocket Internet Explorer 服务器端VBScript,Check for Windows CE if (InStr(Request.ServerVariables(HTTP_USER_AGENT), Windows CE) then add Windows CE specific code
6、else add code for other platforms end if Check for Pocket PC if (InStr(Request.ServerVariables(HTTP_UA_OS), POCKET PC) then add Pocket PC specific code else add code for other platforms end if,探测 Pocket Internet Explorer 客户端 JScript,var strNav = navigator.userAgent; var isCE = strNav.indexOf(Windows
7、 CE); if(isCE -1) add Windows CE specific code else add code for other platforms var isPPC = strNav.indexOf(240 x320); if(isPPC -1) add Pocket PC specific code else add code for other platforms ,XML 性能 (Capabilities),和 Internet Explorer 5.0 同样的 XML 部件 Markup and transfer of data as XML 如何工作: Data-as
8、-XML delivered from server embedded in HTML page - an XML Data Island Data read out of page, parsed, and placed into a data tree JScript accesses the XML OMand manipulates the data,高效使用 Pocket Internet Explorer建议:,保持页面简洁 Avoid 2 frames per page Use tables sparingly; allow for dynamic resizing 单列格式 P
9、ocket IE pages should never require horizontal scrolling Makes single-handed reading easy,使用 eMbedded Visual Tools开发Pocket PC 应用,Embedded Visual Tools(emVT),开发工具,eMbedded Visual Tools 3.0 免费独立的集成式开发环境 (IDE) and 模拟器 多语种开发 eMbedded Visual Basic / eMbedded C+ Features of eVC 3.0 Supported platforms Emu
10、lation Pocket PC Specific Features MFC Pocket PC APIs eMbedded Visual Basic Building eVB Sample Application How to target PocketPC 未来,eMbedded Visual Tools,eVC/eVB is 独立的应用,不再作为Visual Studio Add-in 工具 Separate from but co-exist with VS and VS SPs Remove support for Win32 desktop development 客户利益 Gre
11、atly simplified setup, UI with embedded focus Ability to tailor IDE for platform-specific support Lower cost - no longer need VS installed Tools are FREE, Web download, or order from Web. Also ships FREE with Platform Builder 3.0.,嵌入式VC (eVC),针对不同平台的IntelliSense 分析 (API) 增强的调试功能 - Ethernet 远程工具(Remo
12、te Tools) 针对每一个平台提供相关文档 支持新平台 - Pocket PC,Software Development Kits(SDK),The SDK 允许程序员针对特定的硬件平台 Pocket PC SDK CPUs MIPS, SH3, ARM/SA1100 and Emulation Documents Pocket PC centric APIs/Not Generic CE Docs Detailed MFC info for Pocket PC UI More Sample Code (45+),远程工具(Remote Tools),Remote SPY+ Remote
13、Registry Editor Remote Process View Remote Heap Walker Remote File View Remote Zoomin,针对 Pocket PC的eVC,针对Pocket PC应用开发的 MFC Provide Pocket PC specific functionality PocketPC “DocList” Take into account new MFC features Pocket PC 菜单编辑器 New menu editor Supports Pocket PC menu resource 优秀的桌面模拟体验,处理 SIP
14、,检测和设定 SIP 状态 SipGetInfo( ) and SipSetInfo( ) SIPINFO 结构包括 Flags Sip ON, OFF and Locked Rectangle of Visible Screen Rectangle of SIP 调用 SipGetInfo( ) 以确定当前状态; 调用 SipSetInfo( ) to 改变状态.,定制 “当天” (Today) 条目,作为 DLL来实现 暴露两个函数: InitializeCustomItem( ); CustomItemOptionsDialogProc( ); HWND APIENTRY Initial
15、izeCustomItem(TODAYLISTITEM *ptli, HWND hwndParent); BOOL APIENTRY CustomItemOptionsDlgProc(HWND hDlg, UINT message, UINT wParam, LONG lParam); 实现 WndProc 以处理消息,定制 “当天” (Today) 条目,注册项: HKLMSoftwareMicrosoftTodayItems “MyToday” DLL = (REG_SZ) “SomeDirMyToday.dll” Options = (DWORD) 0 or 1 Enabled = (D
16、WORD) 0 or 1 Type = (DWORD) 4 Custom Item,更多的信息:,Pocket PC developer Web resource Technical Resources Technical content Sample code Technical support resources Tools and SDK distribution Community support resources Enterprise solution related resources Business Resources Mobile Solutions Partner Pro
17、gram (MSPP),计划 组队 设计 代码 调试 测试 实施,了解和掌握新技术 团队成员如何分工合作 框架设计是否合理 如何从现实域抽象到组件域 如何高效的访问数据库 应用级调试和核心级调试 组装和测试 广域网性能跳水、内存泄漏,程序员在开发过程中的问题 产品及开发工具疑问 基于Beta产品的开发紧急情况,特定workshops 微软组队模型 框架设计检查 组件设计指导与规范 代码审查 高级调试培训 测试策略(黑箱/白箱) 性能实验室,开发事件支持热线 特定Hot-fix Beta 产品开发支持 7 X 24,微软企业技术支持服务,微软组队模型 框架设计检查及认证 组件设计指导与规范 代码
18、审查 高级调试培训 测试策略(黑箱/白箱),Product Cycle Management,附录:使用 eMbedded Visual Basic编程,关于 eMbedded Visual Basic,eVB language is a subset of that used by the desktop version of Visual Basic Small, lightweight, and interpreted, Related to VBScript eVB combines the robust power of Visual Basic with the compact portability and ease of use characteristic of VBScript,The eVB Development Process,Platform Manager,Platform Manager,eVB,Desktop,Device,BAS FRM,.VB,Controls COM,ActiveX Controls With eVB,Controls shipped with eVB Image, PictureBox, ImageList FileSys Winsock, MSComm TreeView, ListView Grid, Co
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年福建宁德翠屏湖旅游发展有限公司招聘船务工作人员笔试备考题库及答案解析
- 2026年中国海洋石油集团有限公司2026届春季校园招聘考试备考题库及答案解析
- 2026云南昆明医科大学第一附属医院招聘项目制科研助理人员(第一批次)5人考试备考试题及答案解析
- 2026浙江丽水市残联康复医院招募考试参考题库及答案解析
- 南方航空物流股份有限公司2026届春季校园招聘笔试模拟试题及答案解析
- 2026内蒙古乌海市直事业单位第二批人才引进68人(呼和浩特专场)考试备考题库及答案解析
- 2026江苏苏州大学科研助理岗位招聘11人考试备考题库及答案解析
- 2026浙江省海运集团股份有限公司招聘2人笔试备考试题及答案解析
- 2026四川成都成华区府青路社区卫生服务中心招聘编制外工作人员2人笔试参考题库及答案解析
- 2026云南楚雄州大姚县林业和草原局招聘辅助人员7人考试模拟试题及答案解析
- GB/T 31897.201-2025灯具性能第2-1部分:特殊要求LED灯具
- 内蒙古房屋市政工程施工现场安全资料管理规程
- HGT 3809-2023 工业溴化钠 (正式版)
- 上海银行-011.一般授信业务调查报告格式
- 送教上门教学记录表
- 汉中职业技术学院辅导员考试真题2022
- 双达泵阀新产品手册
- 头颈部肿瘤患者放疗后的张口锻炼培训小讲课
- 2023年小学生必背古诗80首备有解释
- 国家社科基金项目会议评审细则
- 电力设备专题调研报告
评论
0/150
提交评论