如何创建“.msg"在 mfc 中不使用 Outlook 的文件? [英] How to create ".msg" file without using outlook in mfc?

查看:69
本文介绍了如何创建“.msg"在 mfc 中不使用 Outlook 的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Outlook 2010.我将单个联系人拖放到桌面.使用.msg"扩展名在桌面上创建的联系人.此文件使用 VC++/MFC 在本地文件夹中创建

I am using outlook 2010. i drag and drop single contact to desktop. contact created on desktop with ".msg" extensions. this file create in local folder using VC++/MFC

推荐答案

几个选项:

  1. MSG 文件格式已记录,因此您可以直接使用 OLE 存储 API.http://msdn.microsoft.com/en-us/library/cc463912(v=exchg.80).aspx

使用扩展 MAPI (OpenIMsgOnIStg).

Use Extended MAPI (OpenIMsgOnIStg).

使用Redemption 及其RDOSession.CreateMessageFromMsgFile 方法.您所要做的就是调用 CreateMessageFromMsgFile,填充返回的 RDOMail 对象的属性,调用RDOMMail.Save.

Use Redemption and its RDOSession.CreateMessageFromMsgFile method. All you have to do is call CreateMessageFromMsgFile, populate the properties of the returned RDOMail object, call RDOMail.Save.

这篇关于如何创建“.msg"在 mfc 中不使用 Outlook 的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆