梁某人

发展才是硬道理

导航

随笔分类 -  OutLook工程流水账

Outlook的DASL格式列表
摘要:urn:content-classes:message The urn:content-classes:message content class defines a set of properties for an item that is a message. Extends urn:content-classes:item ProgID CDO.Message Properti... 阅读全文

posted @ 2005-12-20 17:47 涛仔28 阅读(779) 评论(0) 推荐(0)

在线程中读取Outlook地址本
摘要:在读取的工作类中使用了 std::deque,在ActiveX类中使用 std::vector存放读取到的编排成xml格式的联系人数据。fireEvent时pop_back. html叶面中的写法是: 0 DEFAULT_MAIL_CLIENT GetDefaultMailClient(){ TCHAR m_szDefMailClient[_MAX_PATH + 1] = _T... 阅读全文

posted @ 2005-11-15 01:34 涛仔28 阅读(635) 评论(0) 推荐(0)

CComQIPtr < Office::_CommandBarButton> spCmdButton PutTag
摘要:->PutTag方法非常重要! 阅读全文

posted @ 2005-09-16 19:11 涛仔28 阅读(275) 评论(0) 推荐(0)

wab文件格式分析
摘要:referred from http://www.vbcity.com/forums/topic.asp?tid=46944&highlight=read%7CwabThe path of the Windows Address Book (wab) file used by Outlook Express can be found in the registry at: HKEY_CURRENT... 阅读全文

posted @ 2005-08-01 23:17 涛仔28 阅读(4705) 评论(2) 推荐(0)

宏定义缺失的解决
摘要:对新界面支持时,VC编译找不到定义的解决实际上,在msdn中能找到的帮助,在vc中不一定能编译成功.在ms的网站上,经常有需要最新版本的.h,.lib支持的提示..lib有时是不必要的,关键是.h文件.如果没有,在stdafx.h中自己加也可以,比如下面就是比较常用的: #define BTNS_SHOWTEXT 0x0040 // ignored unless TBSTYLE_EX_MIXE... 阅读全文

posted @ 2005-07-27 20:30 涛仔28 阅读(786) 评论(0) 推荐(0)

额外的VC预处理选项
摘要: 阅读全文

posted @ 2005-07-27 02:49 涛仔28 阅读(310) 评论(0) 推荐(0)

DECLARE_CLASSFACTORY_SINGLETON 宏
摘要:DECLARE_CLASSFACTORY_SINGLETON This macro declares CComClassFactorySingleton to be the class factory.DECLARE_CLASSFACTORY_SINGLETON( obj) Parameters obj [in] The name of your class object. Remark... 阅读全文

posted @ 2005-07-27 00:55 涛仔28 阅读(903) 评论(0) 推荐(0)

增加24色Rebar的代码片断
摘要:int CMainFrame::CreateRebar(){ if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndToolBar.LoadT... 阅读全文

posted @ 2005-07-27 00:36 涛仔28 阅读(396) 评论(0) 推荐(0)

读取地址本内容
摘要:// main.h #include #include #include #include typedef HRESULT (WINAPI *fWABOpen)(LPADRBOOK*,LPWABOBJECT*,LPWAB_PARAM,DWORD); int main(){ HRESULT hRes; LPADRBOOK lpAdrBook; LPWABOBJECT lpWABObject; L... 阅读全文

posted @ 2005-07-16 01:41 涛仔28 阅读(537) 评论(1) 推荐(0)

打破僵局,下一步是完善所有API的调用方式,使得更简单化
摘要:解决问题,在智能指针上折腾了好长时间,主要原因还是COM的功力不够呀,这些确实是不能含糊的东西,得花时间好好充实自己。。首先在插件connect的时候把 Outlook Application 变量放在一个全局的地方: gOutlookApp取得联系人的关键代码://取得地址LRESULT CContacts::OnBnClickedButtongetaddr(WORD /*wNotifyCode... 阅读全文

posted @ 2005-05-30 12:01 涛仔28 阅读(654) 评论(2) 推荐(0)

关于 webservice 调用
摘要:完成按钮插入、对话框弹出、调用 webservice,如下: Service1::CService1 service; _bstr_t name = "tom"; BSTR result; service.HelloWorld(name.Detach(),&result); USES_CONVERSION; MessageBox(OLE2A(result),""); 下一步:本地Out... 阅读全文

posted @ 2005-05-28 02:22 涛仔28 阅读(391) 评论(0) 推荐(0)