c# 如何读取 Windows 移动设备 6 上的消息存储

标签 c# windows-mobile

任何人都可以发布一个如何在 Windows 移动设备 6 上读取消息存储的示例吗? 我用“InTheHand”完成了这个:

foreach (InTheHand.WindowsMobile.PocketOutlook.SmsMessage mess in sess.SmsAccount.SentItems)
                {
                    if (mess.Received.Year == thisYear && mess.Received.Month == thisMonth)
                    {
                        smsThisMonth++;
                    }
                }

问题是,我只有 InTheHand 的评估版。 如果可能的话,我想用 OpenNetCF 或 mapidotnet 来做这件事。 但我不知道如何使用 OpenNetCF 执行此操作,并且 mapitdotnet 在 sourceforge 站点 ( http://sourceforge.net/projects/mapidotnet/) 上不再可用。 我只在svn目录下找到了,没有dll。

最佳答案

没有任何 OpenNETCF 库提供此功能。我们没有尝试实现它,因为已经有一个可用的解决方案(InTheHand 的库)和 I don't like reinventing the wheel if there's a perfectly good one already available .

如果他们的价格对您来说太高了,您可以随时查看 this MSDN article on COM Interop in the CF并将其与一些 online tutorials on MAPI 相结合和 the MAPI documentation .

The MAPIDotNet project is probably worth investigation too .你说没有二进制文件,但这有什么关系呢?你有一个编译器。

即使在 C++ 中,MAPI 也是令人费解和令人困惑的。根据经验,我可以告诉您,如果您知道如何使用 COM 和 C++,那么在 C# 中完成所有工作(我在 InTheHand 推出他们的产品之前的 1.0 天就完成了)至少需要一周时间。

关于c# 如何读取 Windows 移动设备 6 上的消息存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2867748/

相关文章:

c# - 使用 DirectShow 捕获相机

c# - 在 C# 中使用 LINQ 进行分页结果

C# 在标签之间抓取 HTML

windows-mobile - 企业 Windows Mobile 应用程序现在的去向

c# - 将 windows phone 7 proj 转换为 win mobile 6.5?

c# - 使用我的资源图像 - Compact Framework

c++ - 不使用 activesync/WMDC 访问 Windows Mobile/CE 设备

c# - 将一个 List<CustomType> 复杂合并到另一个 List<CustomType>

c# - asp.net TreeView 中的 OnSelectedNodeChanged 事件不起作用

c# - 从 ffmpeg 标准输出的单个流中获取多个图像