I am trying to write a program to get contact data form outlook. I can get name, number,....
But there are still some issue bother me:1. How to tell the difference between normal contact and the "Contact group"? And how to get the members of a specific "Contact group"
In outlook user can create a "Group" to include some saved contact. But when I use_ContactItemPtr spContact;
.....
CString name = spContact->GetFullName();
.....program crashed. So I want to know how to aware the Item I get is or isn't a "Contact group".2. When I use
CString mail = _com_util::ConvertStringToBSTR(spContact->GetEmail1Address());
Sometimes I get the "/o=TDC/ou=TDC/cn=Recipients/cn=evonne" format.
But what I saw in outlook is "[email protected]". What API should I call to get the "[email protected]" format data not the previous one?Thanks a lot!
But there are still some issue bother me:1. How to tell the difference between normal contact and the "Contact group"? And how to get the members of a specific "Contact group"
In outlook user can create a "Group" to include some saved contact. But when I use_ContactItemPtr spContact;
.....
CString name = spContact->GetFullName();
.....program crashed. So I want to know how to aware the Item I get is or isn't a "Contact group".2. When I use
CString mail = _com_util::ConvertStringToBSTR(spContact->GetEmail1Address());
Sometimes I get the "/o=TDC/ou=TDC/cn=Recipients/cn=evonne" format.
But what I saw in outlook is "[email protected]". What API should I call to get the "[email protected]" format data not the previous one?Thanks a lot!
解决方案 »
- 怎么取得屏幕最右下角的坐标值?
- photoshop的一串文本,各个字符可以设置不同的大小、颜色、基线,是如何实现的?
- 如何创建打开对话框,用什么函数,急?
- 如何给自己创建的button换个icon
- 有关与CString和_UNICODE(char*及int,float等)之间的转换问题
- 关于External Dependencies的问题,疑惑啊。
- VC编译错误,请各位大虾帮忙看看!
- ADO对象怎么封装到DLL中?
- 100分!钱龙分析软件中日线历史数据(就是存放在\DAY\*****.day)的文件格式
- 救命!请问在程序中如何改变IIS主目录的磁盘路径(我只能最高给20分)
- 关于记录操作过程与操作过程回放的问题
- 未发现数据源名称并且未指定默认驱动程序?
谢谢!