All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
C#中设置窗体的属性
AjaxPro与服务器端交互过程中如何传值_[AJAX教程]
ASP.NET2.0中对GridView删除操作时“未能找到带参数的非泛型方法”的解决方案_.net资料_编程技术
SQL语言快速入门之一_mssql学习_编程技术
mssql安装提示已经安装信息,修改注册表_mssql学习_编程技术
在Win2003,R2上安装SQL,Server,2005(二)_[SQL,Server教程]
解决:操作必须使用一个可更新的查询_[Asp.Net教程]
delphi高级vcl组件表头组件(THeaderControl)使用实例
从VS2003(.net1.1)升级到vs2005(.net2.0)全程跟踪记录_[Asp.Net教程]
C#,XML处理技术_[Asp.Net教程]
Reading number is top 10 pictures
身材野火台灣美女2
Take you to walk into the most true north Korea rural1
Sora aoi on twitter4
中国女孩大胆自拍,显露完美身材3
In the world the most mysterious 21 place landscape1
Sora aoi on twitter5
陪睡门马睿菈自曝写真 称首拍大尺度照片3
Discharge accidentally Actresses by the breast4
全球十大灵异酒店
俞敏洪在清华终于说了实话
Download software ranking
变速齿轮3.26
Unix video tutorial8
圣殿祭司的ASP.NET.2.0.开发详解-使用C#
XML+Web+Service开发教程
尖东毒玫瑰B
Boxer's Top ten classic battle2
Boxer's Top ten classic battle7
实战黑客不求人
Unix video tutorial12
网页特效实例大全
aaa published in(发表于) 2013/12/17 7:45:20 Edit(编辑)
.NET:InTheHand提供的类操作SMS_.net资料_编程技术

.NET:InTheHand提供的类操作SMS_.net资料_编程技术

.NET:InTheHand提供的类操作SMS_.net资料_编程技术-你的首页-uuhomepage.com

  由于需要催手机里的短消息(SMS)进行操作,现成的API都不能方便的实现,看到最好用的要数InTheHand这家第三方控件了,真的很方便,但是这个版本是商业版($49),发布的试用版不支持这个类的,够郁闷的。


  其实主要就是利用SmsMessageFolder 这个类,哎,有没有什么好办法可以替代它呢?为什么微软不提供操作SMS的API呢?也许在下个版本中会提供吧,但愿吧!!


  帖段使用SmsMessageFolder 类的代码,如下显示就是备份后再删除的功能,真方便!!


  PS:InTheHand这家网站的路径不小心被我暴出来了:


Fatal error: Maximum execution time of 30 seconds exceeded in
C:Inetpubwwwrootinthehand orumsincludes emplate.php(127) : eval()'d code on line 31


using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using InTheHand.WindowsMobile.PocketOutlook;
namespace DumpSMS
......{
class Program
......{
private const string FILE_NAME = "sms.txt";
static void Main(string[] args)
......{
if (!File.Exists(FILE_NAME))
......{
OutlookSession outSess = new OutlookSession();
SmsMessageFolder smsFlr = outSess.SmsAccount.Inbox;


if (smsFlr.Count > 0)
......{
// Only save the first sms found
SmsMessage smsMsg = smsFlr[0];
if (smsMsg.Body.Length > 0)
......{
StreamWriter writeStream = File.CreateText(FILE_NAME);
writeStream.WriteLine(smsMsg.Body);
writeStream.Close();
}
smsMsg.Delete();

}

}


}
}
}





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.