当前位置:文档之家› WinCE应用程序开发

WinCE应用程序开发


ActiveSync
Workstation
KITL TCP / IP
CE Device
Platform Manager
远程工具
� � � �
你可以在宿主机上远程执行位于目标机上 的各种程序 不同的平台支持不同的远程工具 位于PB和EVC的Tools 菜单下 开发者可ቤተ መጻሕፍቲ ባይዱ使用相应的接口和APIs产生新 的远程工具
MFC

MFC是一个基于C++语言的面向对象的程序设 计框架,它大大简化了Windows编程工作。 优点:
MFC提供了一个标准化的结构,开发人员可从一个较高 的起点编程,从而节省大量的时间 提供了大量的代码程序的控制主要由MFC框架完成。

� �

与桌面MFC的异同:Windows CE中的MFC对 桌面的MFC做了一定的改动。增加了一些 Windows CE特有的类,并且删除了对其他一 些类的支持。
Visual Studio .NET
Visual Studio .NET 2003

� � � �
开发基于.NET Compact Framework 1.0 和.NET Compact Framework 2.0的托管 代码,也可以使用C/C++语言来开发本机 代码 可使用 C#, ... 具有完整的开发环境 目标平台上需要安装 .NET compact framework 易于调试和测试
PB、SDK和开发工具间的关系图
提示 :

只在Standard SDK不能满足需求时才使用 自己的导出SDK 用Platform ->Configure SDK 来配置SDK 从控制面板中卸载SDK


第二步 : 在模拟器下编程和调试

与 Visual C++ 6.0 and Visual C++ .NET 类似 取决于你的 Windows Programming 知识
Windows API函数统计:
控件与消息函数:共91个函数; 硬件与系统函数:共98个函数; 设备场景函数:共73个函数; 绘图函数:共105个函数; 位图、图标和光栅运算函数:共39个函数; 菜单函数:共37个函数; 文本和字体函数:共41个函数; 打印函数:共66个函数; 文件处理函数:共118个函数; 进程和线程函数:共40个函数; Windows消息函数:共11个函数; 网络函数:共14个函数。
目录

工具和技术 常规的应用开发步骤 Windows Mobile开发
� Pocket PC � Smartphone



模拟器概述
常规的应用开发步骤:
1. 2. 3.
获得特定Windows CE平台的SDK. 在Windows CE 模拟器上编辑和调试代码. 在实际目标平台上,编译、运行程序, 如果 需要在设备上调试程序,可以通过 ActiveSync.
C# or VB .NET .NET Compact Framework
Compiled
Runtime
Windows CE Operating System
相关技术 ---- 你有哪些选择?

Win32 Microsoft Foundation Class (MFC) .NET Compact Framework
公共语言运行时 .NET Compact Framework类库


� �
相关技术
---- 对大小的影响
Runtime Win 32 MFC .NET compact framework Size (Byte) 9,805,231 10,234,415 11,201,459 Size Increment 0 429,184 1,396,228



Platform Builder
Platform Builder
� �
支持Win CE App / DLL / Lib ,使用Win32 API开发 应用程序将被链接到OS内核中

一旦修改代码,必须再重新编译镜像 首先必须创建一个debug版的OS

容易调试OS内核, 不容易调试应用程序




模拟器概述
什么是应用程序开发

在特定的Windows CE 平台下 使用该平台的编程接口实现各种功能 平台的价值依赖于运行在其上的应用程序


Windows CE 应用程序开发工具

Platform Builder Embedded Visual C++ Visual Studio .NET Embedded Visual Tools 3.0 ( 不提倡,被 废弃)
Embedded Visual Tools 3.0

包括 Embedded Visual Basic 3.0 and Embedded Visual C++ 3.0 用户界面类似Visual Studio 6.0 开发的程序只能用于Windows CE Version 3.0


应用程序开发选择

平台管理器(Platform Manager)
它是一种通讯机制,用来管理宿主机和目标机之间的 通讯。 平台管理器允许宿主机上的开发工具以介质无关的 方式下载和连接目标机, PB, EVC 4.0, 和 Microsoft .NET Compact Framework 使用平台管理器下载诸如应用、MS ActiveX控件、实时运行库和远程客户端工具等到目标机上。
Native Application eMbedde Model
d Visual C++
Platform Builder
Managed Application Model Visual Studio
.NET 2005
C or C++
Win32 Applicatio ns
C or C++
Win32 Applicatio ns
第一步 : 获得 SDK

SDK是用于在EVC和Visual Studio下开发 应用程序的 获得SDK的两种方法
� �

微软或第三方提供 为自己的平台导出SDK

Microsoft提供:
� �
Standard SDK (Common SDK dev) Windows Mobile SDK (Pocket PC…)
PB下的SDK向导
它是一个工具,用来产生和导出特定平台的 SDK(software development kit ) 。被导出的 SDK由头文件、库文件、运行文件、平台的外延和 帮助文件等组成。 应用程序开发人员可以利用这 个SDK去关联Microsoft embedded Visual C++ 4.0 或 Microsoft Visual Studio .NET,为特定平 台开发应用。 • Platform -> Configure SDK • Platform -> Build SDK
Windows CE嵌入式系统
应用程序开发
目录
工具和技术 � 关于Windows API � 常规的应用开发步骤 � Windows Mobile开发

� Pocket PC � Smartphone

模拟器概述
目录

工具和技术 常规的应用开发步骤 Windows Mobile开发
� Pocket PC � Smartphone
工具名称 Remote Call Profiler
描述
Provides profiling and analysis tools within a graphical user interface (GUI) that enable you to identify algorithmic bottlenecks in your applications. Remote File Viewer Displays a hierarchical view of the file system on a target device. Remote Heap Walker Displays information about heap identifiers and flags for processes that are running on a target device. Remote Kernel Tracker Displays a representation of the execution of the operating system (OS) on a target device. Remote Performance Monitor Measures the performance of a target device. Remote Process Viewer Remote Registry Editor Remote Spy Remote System Information Remote Zoom-in Displays a list of processes and threads running on a target device. Displays the registry for a target device and enables you to manage the registry. Displays a list of windows opened on a target device and messages generated by those windows. Displays system settings and properties for a target device. Displays an image from the screen of a target device.
相关主题