黎波
Windows Mobile Development for Line of Business
posts - 179, comments - 1037, trackbacks - 33, articles - 0
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
用C#获取Windows Mobile短信
Posted on 2008-05-01 22:11
黎波
阅读(2277)
评论(7)
编辑
收藏
所属分类:
.NET CF
以前我看到的Windows Mobile的短信编程的文章和示例都是用C++调用MAPI来实现,今天我在CodeProject上发现了MAPI的.NET封装,实现了99% .NET MAPI。作者是先用C++封装了MAPI的接口,然后再用C#进行二次包装。把C++的代码量降到了最低,大部分代码用C#来完成。作者称这种方法实现的性能比较好,当然不能跟完全用C++实现的比。
原文地址:
Pocket PC and Smartphone 99% .NET MAPI
最新源码:
http://sourceforge.net/projects/mapidotnet
相关参考:
Messaging API (CE MAPI) Reference
(MAPI官方参考)
无聊客的博客
(写了很多Windows Mobile短信开发的文章)
MVP邹建峰的MSDN Webcast:
实例开发Windows Mobile进阶:短信开发大全 (Level 300)
实例开发Windows Mobile进阶:短信开发大全(2) (Level 300)
Practical Use of MAPI
(来自Windows Mobile团队博客)
Feedback
#1楼
回复
引用
查看
2008-05-01 22:29 by
fox23
不错,不过通常用的时候自己封装一下也不难:-)
#2楼
回复
引用
查看
2008-05-01 22:32 by
AppleSeeker
MAPI算是操作短信的方法了。希望.net cf能够将短信封装的更好些。
#3楼
回复
引用
查看
2008-05-02 01:31 by
Henry Liang
昨天就已经看到了,不过还是谢谢推荐。
#4楼
回复
引用
查看
2008-05-02 17:22 by
簡簡單單..
谢谢推荐..
#5楼
回复
引用
查看
2008-05-03 00:04 by
留恋星空
可能用得着
#6楼
回复
引用
查看
2008-05-04 10:11 by
A.Z! [未注册用户]
MAPI的确是C++的速度明显的高出托管代码很多,因为MAPI本身就是一个类似数据库的大型对象,而且互操作的周期和频率都很长(api传值很多)。如果MAPI是托管实现,那么同样用C++调用会慢一点。
#7楼
[
楼主
]
回复
引用
查看
2008-05-06 12:44 by
黎波
@A.Z!
试一试这个库封装的性能如何:)
新用户注册
刷新评论列表
标题
姓名
主页
Email
(只有博主才能看到)
验证码
*
看不清,换一张
内容(请不要发表任何与政治相关的内容)
Remember Me?
登录
使用高级评论
新用户注册
返回页首
恢复上次提交
[使用Ctrl+Enter键可以直接提交]
历史上的今天:
2005-05-01
开发 .NET 下的 FTP 客户端组件
所属分类的其他文章:
·
用C#获取Windows Mobile短信
·
An Introduction to WCF for Device Developers
·
Using CLR Profiler for .NET Compact Framework
·
如何通过代码实现 Windows Mobile 窗体的最小化
·
漂亮的 Windows Mobile 进度条控件
·
如何在 Windows Mobile 程序中获得包含 Millisecond 的 DateTime
·
The Journey of the Lunch Launcher and Store and Forward Messaging
·
在 Windows Mobile 上使用 GDI+
·
开发直接访问SQL Server的智能设备应用程序
·
如何判断 .NET Compact Framework 的版本
博客园首页
社区
Powered by:
博客园
Copyright © 黎波
日历
<
2008年5月
>
日
一
二
三
四
五
六
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
公告
Windows Mobile MVP
2007 - 2008
我的MVP档案
email
china.libo # gmail.com
interest
Windows Mobile, Windows Embedded, SQL Server Compact, .NET Compact Framework, Smart Client, Web Service, SOA, SaaS, SQL Server, SharePoint, UML, CMMI and Project Management.
recent
Visual Studio 2008
recommendation
Windows Mobile FAQ
Windows Mobile Tools
与我互动
给我发短消息
常用链接
我的随笔
我的空间
我的短信
我的参与
更多链接
我的评论
我的新闻
最新评论
我的标签
留言簿
(75)
给我留言
查看公开留言
查看私人留言
我参加的小组
.NETCompactFramework
我参与的团队
北京.NET俱乐部(0/1094)
Windows Mobile 应用开发(0/490)
广州.NET俱乐部(0/1632)
深圳.NET俱乐部(0/1482)
Dot Net Web服务和Windows服务开发(0/231)
SOA研究室(0/182)
MVP团队(0/403)
.net企业应用开发(0/53)
Windows Embedded开发(0/44)
随笔分类
(217)
.NET(6)
.NET CF(31)
.NET MF(1)
Conferences(6)
Enterprise Library(7)
eVC(1)
Jobs(5)
Misc(16)
Mobile Samples(8)
Mobile Tools(20)
Mobile Web(1)
My Lectures(7)
RapidTier(1)
SharePoint(2)
Silverlight(1)
Smart Client(16)
Smart Devices(1)
SQL Anywhere(1)
SQL Server(2)
SQL Server CE(37)
Training(1)
Web & ASP.NET(1)
Web Service(5)
Webcast(6)
Windows CE(4)
Windows Mobile(30)
相册
真我风采
收藏夹
(293)
.NET(29)
.NET CF(27)
ADO.NET(8)
Architecture(19)
ASP.NET & Web(16)
Design Pattern(4)
LINQ(2)
Mobile & Embeded(4)
Mobile Beginner(9)
Mobile Samples(34)
Mobile Web(2)
Office(8)
ORM(6)
Project Management(12)
Remoting(3)
Silverlight(2)
Smart Client(15)
SQL Server(15)
SQL Server CE(23)
Tools(15)
Web Service(15)
Windows CE(4)
Windows Controls(2)
Windows Mobile(10)
WPF/WCF/WWF(9)
A.Web Sites
"How Do I?" Videos for Devices
.NET Compact Framework QuickStart Tutorial
In The Hand
iPhone Dev Center
Microsoft ASP.NET
Microsoft patterns & practices
Microsoft Windows Forms
MSDN Forums Smart Device Development
MSDN Home
MSDN Library
MSDN Magazine
MSDN Webcast
OpenNETCF
Smart Client Guidance
SQL Server CE Books Online
SQL Server Compact
TechNet Magazine
The Code Project
TheServerSide.NET
Visual Studio Documents
Windows Mobile Developer Center
Windows Mobile Developers Wiki
Windows Mobile Hands-On Labs
Windows Mobile Home
Windows Mobile Portal
Windows Mobile Solutions Webcasts
Windows Mobile Virtual Labs
Windows Mobile 发烧友俱乐部
Windows Mobile 首页
Windows Mobile 移动解决方案联盟
Windows Mobility Marvels Webcasts
WindowsClient.net
马宁的Windows Mobile开发研究
微软中文技术论坛
B.Blogs
Jason Langridge
Jim Wilson
Loke Uei Tan
Peter Foot
Rafik Robeal
Rob Tiffany
Steve Lasker
Sync Guru
葛涵涛
黄季冬
刘洪峰
马宁
张欣
搜索
积分与排名
积分 - 287008
排名 - 82
最新评论
1. re: Windows Mobile 开发工具和资源
@cjsafty
MSDN Forums » Smart Device Development
--黎波
2. re: 您的 .NET CF 程序到底运行在什么平台上?
@犇牛牛
确实有错,谢谢指正:)
--黎波
3. re: 您的 .NET CF 程序到底运行在什么平台上?
你的链接Platform detection I 好像给到3了
--犇牛牛
4. re: Windows Mobile 开发工具和资源
感谢黎波 对我的回复。
请问关于WM6的应用程序的开发,你认为有哪些网站或者论坛比较值得
去学习呢,能不能推荐下。
--cjsafty
5. re: 在 Windows Mobile 上使用 GDI+
希望对wm下使用GDI+的朋友进行交流学习:qq 67530591
--尚秀颖
阅读排行榜
1. Windows Mobile 开发工具和资源(9363)
2. Windows Mobile 6 SDK 中的 Cellular Emulator(6872)
3. SQL Server Mobile 2005 程序开发系列课程资料下载(6789)
4. Windows Mobile 6 SDK 中的 GPS 工具(6757)
5. Windows Mobile 6 SDK 中的 Device Emulator 2.0(6438)
6. 如何将数据导入到 SQL Server Compact Edition 数据库中(一)(5869)
7. 操作SQL Server Mobile数据库的常用C#代码(4815)
8. 如何编写 Windows Mobile Smartphone 录音程序(4392)
9. RapidTier 1.0 beta2 发布(4205)
10. 在 Windows Mobile 使用 WS-Attachment 传输二进制数据(3875)
评论排行榜
1. 如何将数据导入到 SQL Server Compact Edition 数据库中(一)(81)
2. Windows Mobile 开发工具和资源(68)
3. RapidTier 1.0 beta2 发布(51)
4. SQL Server Mobile 2005 程序开发系列课程资料下载(50)
5. 在 Windows Mobile 使用 WS-Attachment 传输二进制数据(44)
6. Download Visual Studio Orcas March CTP(36)
7. 如何检测 SQL CE 数据库是否成功建立了合并复制(30)
8. Windows Mobile 6 SDK 中的 Cellular Emulator(30)
9. 如何将数据导入到 SQL Server Compact Edition 数据库中(二)(29)
10. 诚聘Windows Mobile开发工程师(27)
60天内阅读排行
1. 用C#获取Windows Mobile短信(2277)
2. 利用CodeSmith为SQL Server CE生成项目代码(2182)
3. 2008年4月Windows Mobile Webcast预告(2009)
4. 招聘移动开发软件工程师(528)
5. Windows Mobile 6.1发布了(425)
6. Windows Mobile Line of Business Solution Accelerator 2008(337)
7. Widows Mobile Workshop开发培训邀请函(深圳)(172)
8. System Center Mobile Device Manager 2008 参考文档(170)
9. Silverlight 1.0 for Mobile 最新消息(128)
10. Windows Mobile Topics at TechEd 2008(124)