﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-逆水行舟-随笔分类-Offic Program</title><link>http://www.cppblog.com/yearner/category/5579.html</link><description>智慧需要点滴的积累</description><language>zh-cn</language><lastBuildDate>Thu, 15 Jul 2010 10:37:14 GMT</lastBuildDate><pubDate>Thu, 15 Jul 2010 10:37:14 GMT</pubDate><ttl>60</ttl><item><title>关于MSVCRTD.lib的编译错误</title><link>http://www.cppblog.com/yearner/archive/2010/07/14/120309.html</link><dc:creator>(Leyn)顽主</dc:creator><author>(Leyn)顽主</author><pubDate>Wed, 14 Jul 2010 03:30:00 GMT</pubDate><guid>http://www.cppblog.com/yearner/archive/2010/07/14/120309.html</guid><wfw:comment>http://www.cppblog.com/yearner/comments/120309.html</wfw:comment><comments>http://www.cppblog.com/yearner/archive/2010/07/14/120309.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yearner/comments/commentRss/120309.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yearner/services/trackbacks/120309.html</trackback:ping><description><![CDATA[MFC的工程包smcinst，编译后出现以下错误<br>MSVCRTD.lib(MSVCRTD.dll) &nbsp; : &nbsp; error &nbsp; LNK2005: &nbsp; _free &nbsp; already &nbsp; defined &nbsp; in &nbsp; libcmtd.lib(dbgheap.obj) <br>MSVCRTD.lib(MSVCRTD.dll) &nbsp; : &nbsp; error &nbsp; LNK2005: &nbsp; _malloc &nbsp; already &nbsp; defined &nbsp; in &nbsp; libcmtd.lib(dbgheap.obj) <br>....<br>LINK &nbsp; : &nbsp; warning &nbsp; LNK4098: &nbsp; defaultlib &nbsp; "MSVCRTD " &nbsp; conflicts &nbsp; with &nbsp; use &nbsp; of &nbsp; other &nbsp; libs; &nbsp; use &nbsp; /NODEFAULTLIB:library <br>Debug/NKOTwain.ocx &nbsp; : &nbsp; fatal &nbsp; error &nbsp; LNK1169: &nbsp; one &nbsp; or &nbsp; more &nbsp; multiply &nbsp; defined &nbsp; symbols &nbsp; found <br>Error &nbsp; executing &nbsp; link.exe. <br><br><br>标准程序库有关的选项: /ML、/MLd、/MT、/MTd、/MD、/MDd。<br>这些选项对应编译器应用程序所要使用运行时C标准程序库。<br>/ML(缺省选项)对应单线程静态版的标准程序库(libc.lib)；<br>/MT对应多线程静态版标准库(libcmt.lib)，此时编译器会自动定义_MT宏；<br>/MD对应多线程DLL版(导入库msvcrt.lib，DLL是msvcrt.dll)，编译器自动定义_MT和_DLL两个宏。后面加d的选项都会让编译器自动多定义一个_DEBUG宏，表示要使用对应标准库的调试版，因此/MLd对应调试版单线程静态标准库(libcd.lib)，<br>/MTd对应调试版多线程静态标准库(libcmtd.lib)；<br>/MDd对应调试版多线程DLL标准库(导入库msvcrtd.lib，DLL是msvcrtd.dll)。<br><br>因此，上述的conflicts原因是出现了对运行库版本调用的不一致。<br>将有相互调用关系的工程属性-&gt;代码生成-&gt;运行时库 设置成统一选项，如 /mtd. 
<img src ="http://www.cppblog.com/yearner/aggbug/120309.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yearner/" target="_blank">(Leyn)顽主</a> 2010-07-14 11:30 <a href="http://www.cppblog.com/yearner/archive/2010/07/14/120309.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OutLook 中添加集体回复功能</title><link>http://www.cppblog.com/yearner/archive/2007/11/16/36755.html</link><dc:creator>(Leyn)顽主</dc:creator><author>(Leyn)顽主</author><pubDate>Fri, 16 Nov 2007 08:34:00 GMT</pubDate><guid>http://www.cppblog.com/yearner/archive/2007/11/16/36755.html</guid><wfw:comment>http://www.cppblog.com/yearner/comments/36755.html</wfw:comment><comments>http://www.cppblog.com/yearner/archive/2007/11/16/36755.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/yearner/comments/commentRss/36755.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yearner/services/trackbacks/36755.html</trackback:ping><description><![CDATA[我女朋友做hr工作，有一次帮她筛简历，只要没有英文简历的就需要发邮件要，有英文简历的就发一个简单的通知。看起来挺简单，好，第一步，先把没有英文简历的邮件标上蓝旗，有英文简历的标对号，第二步，分别集体回复蓝旗和对号的邮件。可作完第一步才发现outlook 中只有reply all 而没有可选邮件回复，无奈，手工回复了所有的邮件，等发完三十封之后，已经气喘嘘嘘了。一气之下，决定作一个可以群体恢复的控件。<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  需求： 选中若干邮件，点击按钮，新建邮件并将选中邮件的发件人地址自动添加到收件人项目中。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 编程工具：outlook 绑定的visual basic 宏编辑器（）<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1，打开编辑器<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp; 写入代码：<br>Sub ReplyMessage_version02()<br>&nbsp;&nbsp;&nbsp; Dim msg As Outlook.MailItem<br>&nbsp;&nbsp;&nbsp; Set msg = Application.CreateItem(olMailItem)<br>&nbsp;&nbsp;&nbsp; msg.Subject = "Ethos"<br>&nbsp;&nbsp;&nbsp; msg.To = GetAddressFromSelection()<br>&nbsp;&nbsp;&nbsp; msg.Display<br>End Sub<br><br>Function GetAddressFromSelection()<br>Dim myOlSel As Outlook.Selection<br>&nbsp;&nbsp;&nbsp; Dim x As Integer<br>&nbsp;&nbsp;&nbsp; adresses = ""<br>&nbsp;&nbsp;&nbsp; Set myOlSel = Application.ActiveExplorer.Selection<br>&nbsp;&nbsp;&nbsp;&nbsp; For x = 1 To myOlSel.Count<br>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; adresses = adresses &amp; myOlSel.Item(x).SenderEmailAddress &amp; ";"<br>&nbsp;&nbsp;&nbsp; Next x<br>&nbsp;&nbsp;&nbsp; GetAddressFromSelection = adresses<br>End Function<br>End Sub<br><br>2， 好，这时就可以选中邮件运行宏命令了。为了方便可以在工具栏编辑按钮来调用命令。<br>这次为了方便采用的outlook绑定vb， 有时间再尝试C++,c# :)<br><br>Reference:http://outlookcode.com<br><br><br>  <img src ="http://www.cppblog.com/yearner/aggbug/36755.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yearner/" target="_blank">(Leyn)顽主</a> 2007-11-16 16:34 <a href="http://www.cppblog.com/yearner/archive/2007/11/16/36755.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>