﻿<?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++博客-メmarsメ-随笔分类-点滴积累</title><link>http://www.cppblog.com/jxtgddlt/category/17824.html</link><description /><language>zh-cn</language><lastBuildDate>Thu, 15 Mar 2012 01:35:41 GMT</lastBuildDate><pubDate>Thu, 15 Mar 2012 01:35:41 GMT</pubDate><ttl>60</ttl><item><title>无法解析 __imp__ExtractIconW@12、 __imp__ExtractIconW@12</title><link>http://www.cppblog.com/jxtgddlt/archive/2012/03/08/167404.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Thu, 08 Mar 2012 07:33:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2012/03/08/167404.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/167404.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2012/03/08/167404.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/167404.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/167404.html</trackback:ping><description><![CDATA[<div></div><div>1&gt;DXUT.obj : error LNK2019: 无法解析的外部符号 <span style="color: red; ">__imp__CommandLineToArgvW</span>@8，该符号在函数 "void __cdecl DXUTParseCommandLine(void)" (?DXUTParseCommandLine@@YAXXZ) 中被引用</div><div>1&gt;DXUT.obj : error LNK2019: 无法解析的外部符号<span style="color: red; "> __imp__ExtractIconW@12</span>，该符号在函数 "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z) 中被引用</div><div>1&gt;DXUTmisc.obj : error LNK2019: 无法解析的外部符号 _<span style="color: red; ">_imp__ShellExecuteW@24</span>，该符号在函数 "bool __cdecl DXUTReLaunchMediaCenter(void)" (?DXUTReLaunchMediaCenter@@YA_NXZ) 中被引用<br /><br /><span style="color: red; ">在[附加依赖项]中勾选[从父级或项目默认设置继承]选项</span></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/167404.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2012-03-08 15:33 <a href="http://www.cppblog.com/jxtgddlt/archive/2012/03/08/167404.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>static DWORD成员变量定义</title><link>http://www.cppblog.com/jxtgddlt/archive/2012/02/27/166636.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Mon, 27 Feb 2012 10:43:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2012/02/27/166636.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/166636.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2012/02/27/166636.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/166636.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/166636.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><br /><span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;classes&nbsp;and&nbsp;structures</span><span style="color: #008000; "><br /></span><span style="color: #0000FF; ">struct</span>&nbsp;stVertex{<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;<img src="http://www.cppblog.com/Images/dot.gif"  alt="" /></span><span style="color: #008000; "><br /></span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">static</span>&nbsp;<span style="color: #0000FF; ">const</span>&nbsp;<span style="color: red; ">DWORD&nbsp;</span>FVF_VERTEX&nbsp;=&nbsp;D3DFVF_XYZ&nbsp;|&nbsp;D3DFVF_NORMAL&nbsp;|&nbsp;D3DFVF_TEX1;<br />};<br /><span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;因为DWORD在编译时刻宏替换成unsigned,而FVF_VERTEX也是编译时刻定义的,因此会出错,无法识别DWORD类型<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;solution:&nbsp;DWORD&nbsp;换成&nbsp;</span><span style="color: red; ">unsigned</span></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/166636.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2012-02-27 18:43 <a href="http://www.cppblog.com/jxtgddlt/archive/2012/02/27/166636.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>#pragma warning(disable:4996)</title><link>http://www.cppblog.com/jxtgddlt/archive/2012/02/19/165974.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Sun, 19 Feb 2012 06:55:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2012/02/19/165974.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/165974.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2012/02/19/165974.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/165974.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/165974.html</trackback:ping><description><![CDATA[<div>warning C4996: <span style="color: red; ">strcpy was declared deprecated&nbsp;</span></div><div>在使用VC 2005 的开发者会遇到这样的问题，在使用std命名空间库函数的时候，往往会出现类似于下面的警告： &nbsp; &nbsp;warning C4996: strcpy was declared deprecated</div><div>出现这样的警告，是因为VC2005中认为CRT中的一组函数如果使用不当，可能会产生诸如内存泄露、缓冲区溢出、非法访问等安全问题。这些函数如：strcpy、strcat等。</div><div>对于这些问题，VC2005建议使用这些函数的更高级的安全版本，即在这些函数名后面加了一个_s的函数。这些安全版本函数使用起来更有效，也便于识别，如：strcpy_s,calloc_s等。</div><div>当然，如果执意使用老版本、非安全版本函数，可以使用_CRT_SECURE_NO_DEPRECATE标记来忽略这些警告问题。办法是在编译选项 C/C++ | Preprocessor | Preprocessor Definitions中，增加_CRT_SECURE_NO_DEPRECATE标记即可。或在程序开头添加 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#pragma &nbsp;warning(disable:4996) &nbsp; //全部关掉 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#pragma &nbsp;warning(once:4996) &nbsp; &nbsp; &nbsp;//仅显示一个</div><div>&nbsp;</div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/165974.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2012-02-19 14:55 <a href="http://www.cppblog.com/jxtgddlt/archive/2012/02/19/165974.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VS2010快捷键及设置</title><link>http://www.cppblog.com/jxtgddlt/archive/2012/01/08/163843.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Sun, 08 Jan 2012 12:34:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2012/01/08/163843.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/163843.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2012/01/08/163843.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/163843.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/163843.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: VS2010快捷键设置1.进入工具----选项 &nbsp;对话框2.选择&nbsp; 环境----&gt;键盘3.在 【显示命令包含】 下面的对话框中输入&#8220;对齐&#8221;关键字，然后就会在这个编辑框下面一个文本窗口中显示关于&#8220;对齐&#8221;一系列的&#8220;某某对齐&#8221;操作命令，选中你想查看的，就会在【选定命令的快捷键】一栏中显示其快捷键了VS201...&nbsp;&nbsp;<a href='http://www.cppblog.com/jxtgddlt/archive/2012/01/08/163843.html'>阅读全文</a><img src ="http://www.cppblog.com/jxtgddlt/aggbug/163843.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2012-01-08 20:34 <a href="http://www.cppblog.com/jxtgddlt/archive/2012/01/08/163843.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VS2010 多项目配置</title><link>http://www.cppblog.com/jxtgddlt/archive/2012/01/08/163829.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Sun, 08 Jan 2012 08:04:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2012/01/08/163829.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/163829.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2012/01/08/163829.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/163829.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/163829.html</trackback:ping><description><![CDATA[项目环境目录：<img src="http://www.cppblog.com/images/cppblog_com/jxtgddlt/未命名.jpg" width="752" height="485" alt="" /><br />若出现无法打开自己编译的.lib文件或者.h文件的时候,便可通过增加库目录或包含目录解决<br /><br /><br />若只想多项目中某个项目生成.lib文件的时候,得修改<img src="http://www.cppblog.com/images/cppblog_com/jxtgddlt/捕获.PNG" width="971" height="475" alt="" /><br />将其改成静态库(.lib)即可<br /><br /><div><div> <img src="file:///J:\Users\MARS\AppData\Roaming\Tencent\Users\541963692\QQ\WinTemp\RichOle\O87[QB`(96A8P528{SWPZVF.jpg"  alt="" /></div></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/163829.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2012-01-08 16:04 <a href="http://www.cppblog.com/jxtgddlt/archive/2012/01/08/163829.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>无法打开文件 d3dx9.lib</title><link>http://www.cppblog.com/jxtgddlt/archive/2012/01/08/163820.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Sun, 08 Jan 2012 04:10:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2012/01/08/163820.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/163820.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2012/01/08/163820.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/163820.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/163820.html</trackback:ping><description><![CDATA[<div>找到包含文件d3dx9.lib的目录<br />在项目属性的VC++目录中配置<span style="color: red; ">&#8220;包含目录&#8221;和&#8220;库目录&#8221;</span><br /><br />如果还是出错,则可能是一个解决方案中创建了几个项目 要在本项目中配置<br /></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/163820.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2012-01-08 12:10 <a href="http://www.cppblog.com/jxtgddlt/archive/2012/01/08/163820.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Microsoft Visual C++ Package Server 已停止工作</title><link>http://www.cppblog.com/jxtgddlt/archive/2012/01/07/163768.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Sat, 07 Jan 2012 01:02:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2012/01/07/163768.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/163768.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2012/01/07/163768.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/163768.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/163768.html</trackback:ping><description><![CDATA[<div><div><div></div><div><div>问题事件名称: APPCRASH</div><div>&nbsp; 应用程序名: VCPkgSrv.exe</div><div>&nbsp; 应用程序版本: 10.0.30319.1</div><div>&nbsp; 应用程序时间戳: 4ba1fde1</div><div>&nbsp; 故障模块名称: cpfe.dll</div><div>&nbsp; 故障模块版本: 16.0.30319.1</div><div>&nbsp; 故障模块时间戳: 4ba217f7</div><div>&nbsp; 异常代码: c0000005</div><div>&nbsp; 异常偏移: 000ab7a6</div><div>&nbsp; OS 版本: 6.1.7601.2.1.0.256.48</div><div>&nbsp; 区域设置 ID: 2052</div><div>&nbsp; 其他信息 1: 0a9e</div><div>&nbsp; 其他信息 2: 0a9e372d3b4ad19135b953a78882e789</div><div>&nbsp; 其他信息 3: 0a9e</div><div>&nbsp; 其他信息 4: 0a9e372d3b4ad19135b953a78882e789</div><div></div><div>VCPkgSrv 是关于Visual Studio 2010 中IntelliSense。 可以从菜单栏中的<span style="color: red; ">工具 -&gt;选项-&gt;文本编辑-&gt;C/C++-》高级-&gt;IntelliSense-&gt;禁用IntelliSense。关闭此程序</span>。此外，也可以把问题提交到以下地址，以获得更多的支持：http://connect.microsoft.com/</div><div>&nbsp;</div><div>这里是connect 上关于这个问题的一些链接：</div><div>1. http://connect.microsoft.com/VisualStudio/feedback/details/637217/vcpkgsrv-exe-crashing</div><div>2. http://connect.microsoft.com/VisualStudio/feedback/details/636817/vcpkgsrv-exe-crashes-periodically</div><div>3. http://connect.microsoft.com/VisualStudio/feedback/details/633235/vcpkgsrv-crashing-all-the-time-intellisense-not-working</div><div>4. http://connect.microsoft.com/VisualStudio/feedback/details/635679/vcpkgsrv-exe-constantly-crashing-precompiled-headers-involved。</div><div>5. http://connect.microsoft.com/VisualStudio/feedback/details/502514/vcpkgsrv-exe-throwing-exceptions-on-browsing-project-files<br /><br />care:这个问题在VS2010旗舰版上无法根本解决的,也就是说只有MS更新编译器后才能根本解决这个问题,如果禁用了IntelliSense就禁用了那几个诸如错误报告和波形曲线很好用的功能...杯具! 而这个貌似在VS2008上没有的,可能是没找到,反正没看到...<br /><br /></div></div><div></div></div><div><p style="border-style: initial; border-color: initial; border-image: initial; margin-top: 0in; margin-right: 0in; margin-bottom: 0pt; margin-left: 0in; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: none; text-decoration: none; "><a href="http://connect.microsoft.com/VisualStudio/feedback/details/502514/vcpkgsrv-exe-throwing-exceptions-on-browsing-project-files" rel="nofollow" style="border-style: initial; border-color: initial; border-image: initial; font-style: inherit; font-family: inherit; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #0066dd; cursor: pointer; text-decoration: none; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: none; "><span style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-style: inherit; font-family: Calibri; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #0000ff; font-size: small; "></span></a></p></div></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/163768.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2012-01-07 09:02 <a href="http://www.cppblog.com/jxtgddlt/archive/2012/01/07/163768.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>无法解析_c_dfDIMouse、_c_dfDIKeyboard、_DirectInput8Create@20、_c_dfDIJoystick2</title><link>http://www.cppblog.com/jxtgddlt/archive/2012/01/06/163693.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Fri, 06 Jan 2012 02:37:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2012/01/06/163693.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/163693.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2012/01/06/163693.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/163693.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/163693.html</trackback:ping><description><![CDATA[<div><div>1&gt;------ 已启动生成: 项目: WinTest, 配置: Debug Win32 ------</div><div>1&gt;生成启动时间为 2012/1/6 10:24:17。</div><div>1&gt;InitializeBuildStatus:</div><div>1&gt; &nbsp;正在创建&#8220;Debug\WinTest.unsuccessfulbuild&#8221;，因为已指定&#8220;AlwaysCreate&#8221;。</div><div>1&gt;ClCompile:</div><div>1&gt; &nbsp;main.cpp</div><div>1&gt;ManifestResourceCompile:</div><div>1&gt; &nbsp;所有输出均为最新。</div><div>1&gt;CDirectInput.obj : error LNK2001: 无法解析的外部符号 <span style="color: red; ">_c_dfDIMouse</span></div><div>1&gt;CDirectInput.obj : error LNK2001: 无法解析的外部符号 <span style="color: red; ">_c_dfDIKeyboard</span></div><div>1&gt;CDirectInput.obj : error LNK2019: 无法解析的外部符号 <span style="color: red; ">_DirectInput8Create@20</span>，该符号在函数&nbsp;</div><div></div><div>"public: bool __thiscall CDirectInputSystem::Initialize(struct HWND__ *,struct HINSTANCE__&nbsp;</div><div></div><div>*,bool)" (?Initialize@CDirectInputSystem@@QAE_NPAUHWND__@@PAUHINSTANCE__@@_N@Z) 中被引用</div><div>1&gt;CDirectInput.obj : error LNK2001: 无法解析的外部符号 <span style="color: red; ">_c_dfDIJoystick2</span></div><div>1&gt;E:\Visual Studio 2010\Projects\WinTest\Debug\WinTest.exe : fatal error LNK1120: 4 个无法解析的</div><div></div><div>外部命令</div><div>1&gt;</div><div>1&gt;生成失败。</div><div>1&gt;</div><div>1&gt;已用时间 00:00:03.52</div><div>========== 生成: 成功 0 个，失败 1 个，最新 0 个，跳过 0 个 ==========</div><div></div><div><span style="color: red; ">dinput8.lib</span></div></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/163693.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2012-01-06 10:37 <a href="http://www.cppblog.com/jxtgddlt/archive/2012/01/06/163693.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>(++a)+=3;</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/12/26/162815.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Sun, 25 Dec 2011 23:25:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/12/26/162815.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/162815.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/12/26/162815.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/162815.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/162815.html</trackback:ping><description><![CDATA[C++中,++a的结果是左值,返回给值本身,也就是说上面合法<img src ="http://www.cppblog.com/jxtgddlt/aggbug/162815.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-12-26 07:25 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/12/26/162815.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>编程规范</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/12/23/162662.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Fri, 23 Dec 2011 03:03:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/12/23/162662.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/162662.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/12/23/162662.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/162662.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/162662.html</trackback:ping><description><![CDATA[1.&nbsp;<span style="background-color: #ffffff; font-family: simsun; line-height: 23px; text-align: left; ">尽量用乘法或其它方法代替除法，特别是浮点运算中的除法。</span><img src ="http://www.cppblog.com/jxtgddlt/aggbug/162662.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-12-23 11:03 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/12/23/162662.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>无法解析外部符号 __imp__CoUninitialize@0、_TID_D3DRMFrameTransformMatrix</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/12/21/162520.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Wed, 21 Dec 2011 03:15:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/12/21/162520.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/162520.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/12/21/162520.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/162520.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/162520.html</trackback:ping><description><![CDATA[<div><div>1&gt;------ 已启动生成: 项目: WinTest, 配置: Debug Win32 ------</div><div>1&gt;生成启动时间为 2011/12/21 10:47:42。</div><div>1&gt;InitializeBuildStatus:</div><div>1&gt; &nbsp;正在对&#8220;Debug\WinTest.unsuccessfulbuild&#8221;执行 Touch 任务。</div><div>1&gt;ClCompile:</div><div>1&gt; &nbsp;所有输出均为最新。</div><div>1&gt;ManifestResourceCompile:</div><div>1&gt; &nbsp;所有输出均为最新。</div><div>1&gt;PlayVideo.obj : error LNK2001: 无法解析的外部符号 <span style="color: red; ">_TID_D3DRMFrameTransformMatrix</span></div><div>1&gt;PlayVideo.obj : error LNK2001: 无法解析的外部符号 <span style="color: red; ">_TID_D3DRMFrame</span></div><div>1&gt;PlayVideo.obj : error LNK2001: 无法解析的外部符号 <span style="color: red; ">_TID_D3DRMMesh</span></div><div>1&gt;PlayVideo.obj : error LNK2001: 无法解析的外部符号 <span style="color: red; ">_TID_D3DRMAnimation</span></div><div>1&gt;PlayVideo.obj : error LNK2001: 无法解析的外部符号 <span style="color: red; ">_TID_D3DRMAnimationSet</span></div><div>1&gt;PlayVideo.obj : error LNK2001: 无法解析的外部符号 <span style="color: red; ">_TID_D3DRMAnimationKey</span></div><div>1&gt;E:\Visual Studio 2010\Projects\WinTest\Debug\WinTest.exe : fatal error LNK1120: 6 个无法解析的</div><div></div><div>外部命令</div><div>1&gt;</div><div>1&gt;生成失败。</div><div>1&gt;</div><div>1&gt;已用时间 00:00:01.04</div><div>========== 生成: 成功 0 个，失败 1 个，最新 0 个，跳过 0 个 ==========</div><div></div><div><span style="color: red; ">在VC工程里添加附加依赖项dxguid.lib并在代码里添加#include&lt;rmxfguid.h&gt;可以解决</span></div><div></div><div>1&gt;------ 已启动生成: 项目: WinTest, 配置: Debug Win32 ------</div><div>1&gt;生成启动时间为 2011/12/21 11:12:49。</div><div>1&gt;InitializeBuildStatus:</div><div>1&gt; &nbsp;正在创建&#8220;Debug\WinTest.unsuccessfulbuild&#8221;，因为已指定&#8220;AlwaysCreate&#8221;。</div><div>1&gt;ClCompile:</div><div>1&gt; &nbsp;所有输出均为最新。</div><div>1&gt;ManifestResourceCompile:</div><div>1&gt; &nbsp;所有输出均为最新。</div><div>1&gt;Link:</div><div>1&gt; &nbsp;所有输出均为最新。</div><div>1&gt;PlayVideo.obj : error LNK2019: 无法解析的外部符号<span style="color: red; "> __imp__CoUninitialize@0</span>，该符号在函数&nbsp;</div><div></div><div>_WinMain@16 中被引用</div><div>1&gt;PlayVideo.obj : error LNK2019: 无法解析的外部符号 <span style="color: red; ">__imp__CoInitialize@4</span>，该符号在函数&nbsp;</div><div></div><div>_WinMain@16 中被引用</div><div>1&gt;E:\Visual Studio 2010\Projects\WinTest\Debug\WinTest.exe : fatal error LNK1120: 2 个无法解析的</div><div></div><div>外部命令</div><div>1&gt;</div><div>1&gt;生成失败。</div><div>1&gt;</div><div>1&gt;已用时间 00:00:00.38</div><div>========== 生成: 成功 0 个，失败 1 个，最新 0 个，跳过 0 个 ==========</div><div></div><div></div><div><span style="color: red; ">加上这个:ole32.lib</span></div></div><div></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/162520.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-12-21 11:15 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/12/21/162520.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>编译器优化</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/12/12/161956.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Mon, 12 Dec 2011 02:54:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/12/12/161956.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/161956.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/12/12/161956.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/161956.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/161956.html</trackback:ping><description><![CDATA[<div style="font-size: 13px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; background-color: #eeeeee; "><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><br />#include&lt;iostream&gt;<br /><span style="color: #0000FF; ">using</span>&nbsp;<span style="color: #0000FF; ">namespace</span>&nbsp;std;<br /><span style="color: #0000FF; ">class</span>&nbsp;C{<br /><span style="color: #0000FF; ">public</span>:<br />&nbsp;&nbsp;&nbsp;&nbsp;C(<span style="color: #0000FF; ">int</span>&nbsp;i&nbsp;){&nbsp;cout&nbsp;&lt;&lt;&nbsp;"constructor"&nbsp;&lt;&lt;&nbsp;endl;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;C(&nbsp;<span style="color: #0000FF; ">const</span>&nbsp;C&amp;&nbsp;c&nbsp;){&nbsp;cout&nbsp;&lt;&lt;&nbsp;"copy"&nbsp;&lt;&lt;&nbsp;endl;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;C&amp;&nbsp;<span style="color: #0000FF; ">operator</span>&nbsp;=&nbsp;(&nbsp;<span style="color: #0000FF; ">const</span>&nbsp;C&amp;&nbsp;c&nbsp;){&nbsp;cout&nbsp;&lt;&lt;&nbsp;"="&nbsp;&lt;&lt;&nbsp;endl;&nbsp;}<br /><span style="color: #0000FF; ">private</span>:<br />};<br />C&nbsp;fun(){<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">return</span>&nbsp;C(2);<br />}<br /><span style="color: #0000FF; ">int</span>&nbsp;main(){<br />&nbsp;&nbsp;&nbsp;&nbsp;C&nbsp;c(&nbsp;fun()&nbsp;);<br /><br />}<br /><span style="color: #008000; ">/*</span><span style="color: #008000; "><br />constructor<br />请按任意键继续.&nbsp;.&nbsp;.<br /></span><font class="Apple-style-span" color="#008000">*/</font><br /><div><span style="color: red; ">没有调用拷贝构造函数</span><br /><div><span style="color: red; ">编译器做了优化</span>，C c( fun() )-&gt;C c(C(2))。构造两个同样的构造函数，<br />其中一个是没用的临时对象，编译器就直接把它转化为C c(2)，</div></div></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/161956.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-12-12 10:54 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/12/12/161956.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>static_cast注意点</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/12/07/161682.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Wed, 07 Dec 2011 11:21:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/12/07/161682.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/161682.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/12/07/161682.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/161682.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/161682.html</trackback:ping><description><![CDATA[<div style="display: inline-block; "><div><div><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><div style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; "><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->#include&nbsp;"stdafx.h"<br /><span style="color: #0000FF; ">class</span>&nbsp;C{<br /><span style="color: #0000FF; ">public</span>:<br />&nbsp;&nbsp;&nbsp;&nbsp;~C(){&nbsp;cout&nbsp;&lt;&lt;&nbsp;"~C"&nbsp;&lt;&lt;&nbsp;endl;&nbsp;}<br />};<br /><br /><br /><span style="color: #0000FF; ">class</span>&nbsp;B:<span style="color: #0000FF; ">public</span>&nbsp;C{<br /><span style="color: #0000FF; ">public</span>:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;~B(){&nbsp;cout&nbsp;&lt;&lt;&nbsp;"~B"&nbsp;&lt;&lt;&nbsp;endl;&nbsp;}<br />};<br /><span style="color: #0000FF; ">int</span>&nbsp;main(){<br />&nbsp;&nbsp;&nbsp;&nbsp;B&nbsp;b;<br />&nbsp;&nbsp;&nbsp;&nbsp;static_cast&lt;C&gt;(b);<br />&nbsp;&nbsp;&nbsp;&nbsp;(C)b;<br />}<br /><span style="color: #008000; ">/*</span><span style="color: #008000; "><br />~C<br />~C<br />~B<br />~C<br />请按任意键继续.&nbsp;.&nbsp;.</span><span style="color: #008000; ">*/</span>#include&nbsp;"stdafx.h"</div><div style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; "><span style="color: #0000FF; ">class</span>&nbsp;C{<br /><span style="color: #0000FF; ">public</span>:<br />&nbsp;&nbsp;&nbsp;&nbsp;~C(){&nbsp;cout&nbsp;&lt;&lt;&nbsp;"~C"&nbsp;&lt;&lt;&nbsp;endl;&nbsp;}<br />};<br /><br /><br /><span style="color: #0000FF; ">class</span>&nbsp;B:<span style="color: #0000FF; ">public</span>&nbsp;C{<br /><span style="color: #0000FF; ">public</span>:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;~B(){&nbsp;cout&nbsp;&lt;&lt;&nbsp;"~B"&nbsp;&lt;&lt;&nbsp;endl;&nbsp;}<br />};<br /><span style="color: #0000FF; ">int</span>&nbsp;main(){<br />&nbsp;&nbsp;&nbsp;&nbsp;B&nbsp;b;<br />&nbsp;&nbsp;&nbsp;&nbsp;C*&nbsp;pc;<br />&nbsp;&nbsp;&nbsp;&nbsp;pc&nbsp;=&nbsp;static_cast&lt;C*&gt;(&amp;b);<br />&nbsp;&nbsp;&nbsp;&nbsp;pc&nbsp;=&nbsp;(C*)&amp;b;<br />}&nbsp;</div></div></div></div></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/161682.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-12-07 19:21 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/12/07/161682.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>类继承中调用函数</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/12/07/161626.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Tue, 06 Dec 2011 17:08:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/12/07/161626.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/161626.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/12/07/161626.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/161626.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/161626.html</trackback:ping><description><![CDATA[<div><div><div style="font-size: 13px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; background-color: #eeeeee; "><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->#include&nbsp;"stdafx.h"<br /><span style="color: #0000FF; ">class</span>&nbsp;B{<br /><span style="color: #0000FF; ">public</span>:<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">void</span>&nbsp;fun(){&nbsp;fun2();&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">void</span>&nbsp;fun2(){&nbsp;cout&nbsp;&lt;&lt;&nbsp;"B"&nbsp;&lt;&lt;&nbsp;endl;&nbsp;}<br />};<br /><br /><span style="color: #0000FF; ">class</span>&nbsp;C:<span style="color: #0000FF; ">public</span>&nbsp;B{<br /><span style="color: #0000FF; ">public</span>:<br />&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">void</span>&nbsp;fun2(){&nbsp;cout&nbsp;&lt;&lt;&nbsp;"C"&nbsp;&lt;&lt;&nbsp;endl;&nbsp;}<br />};<br /><br /><span style="color: #0000FF; ">int</span>&nbsp;main(){<br />&nbsp;&nbsp;&nbsp;&nbsp;C&nbsp;c;<br />&nbsp;&nbsp;&nbsp;&nbsp;c.fun();<br />}<br /><span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;output:<br /></span><span style="color: #008000; ">//</span><span style="color: red; ">&nbsp;B</span></div></div></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/161626.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-12-07 01:08 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/12/07/161626.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title> LNK4006 symbol already defined in object; second definition ignored</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/11/29/161101.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Tue, 29 Nov 2011 01:54:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/11/29/161101.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/161101.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/11/29/161101.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/161101.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/161101.html</trackback:ping><description><![CDATA[<div><div>1&gt;LINK : warning LNK4075: 忽略&#8220;/INCREMENTAL&#8221;(由于&#8220;/FORCE&#8221;规范)</div><div>1&gt;GRMA.obj : <span style="color: red; ">warning LNK4006</span>: "struct HWND__ * GhDlg" (?GhDlg@@3PAUHWND__@@A) 已在 ConnectDatabase.obj 中定义；已忽略第二个定义</div><div>1&gt;GRMA.obj : warning LNK4006: "char * szAppName" (?szAppName@@3PADA) 已在 ConnectDatabase.obj 中定义；已忽略第二个定义</div><div>1&gt;GRMA.obj : warning LNK4006: "char * szHeadName" (?szHeadName@@3PADA) 已在 ConnectDatabase.obj 中定义；已忽略第二个定义</div><div>1&gt;E:\Visual Studio 2010\Projects\Guest Room Management App\Debug\Guest Room Management App.exe : warning LNK4088: 因 /FORCE 选项生成了映像；映像可能不能运行</div><div>1&gt;Manifest:</div></div><div><br />解决方案:<br /><div><span style="font-family: simsun; line-height: 23px; background-color: #ffffff; color: red; ">如果用头文件定义全局变量的话，就只能在一个cpp里面包含该头文件，其他地方用extern引用&nbsp;</span><br style="font-family: simsun; line-height: 23px; text-align: left; background-color: #ffffff; " /><span style="font-family: simsun; line-height: 23px; text-align: left; background-color: #ffffff; color: red; ">否则每个包含该头文件的cpp生成的obj都会有一个定义</span></div></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/161101.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-11-29 09:54 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/11/29/161101.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>vs2010出现link2005</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/11/29/161100.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Tue, 29 Nov 2011 01:38:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/11/29/161100.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/161100.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/11/29/161100.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/161100.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/161100.html</trackback:ping><description><![CDATA[<div><span style="color: #4b4b4b; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; line-height: 19px; background-color: #ffffff; font-size: small; ">在项目属性 链接器 命令行 上加上：</span><span style="line-height: 19px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-indent: 35px; background-color: #ffffff; font-size: small; color: red; ">/FORCE:MULTIPLE</span><span style="color: #4b4b4b; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; line-height: 19px; text-indent: 35px; background-color: #ffffff; font-size: small; ">即可</span></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/161100.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-11-29 09:38 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/11/29/161100.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title> __imp__InitCommonControlsEx@4  __imp__EndDialog</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/11/27/161023.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Sun, 27 Nov 2011 02:53:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/11/27/161023.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/161023.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/11/27/161023.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/161023.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/161023.html</trackback:ping><description><![CDATA[<div><div>1&gt;------ 已启动生成: 项目: Guest Room Management App, 配置: Debug Win32 ------</div><div>1&gt;生成启动时间为 2011/11/27 10:51:46。</div><div>1&gt;InitializeBuildStatus:</div><div>1&gt; &nbsp;正在创建&#8220;Debug\Guest Room Management App.unsuccessfulbuild&#8221;，因为已指定&#8220;AlwaysCreate&#8221;。</div><div>1&gt;ClCompile:</div><div>1&gt; &nbsp;所有输出均为最新。</div><div>1&gt;ResourceCompile:</div><div>1&gt; &nbsp;所有输出均为最新。</div><div>1&gt;ManifestResourceCompile:</div><div>1&gt; &nbsp;所有输出均为最新。</div><div>1&gt;Link:</div><div>1&gt; &nbsp;所有输出均为最新。</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__EndDialog@8，该符号在函数 "int __stdcall DlgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DlgProc@@YGHPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__SetFocus@4，该符号在函数 "int __stdcall DlgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DlgProc@@YGHPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__SetWindowPos@28，该符号在函数 "int __stdcall DlgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DlgProc@@YGHPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__GetSystemMetrics@4，该符号在函数 "int __stdcall DlgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DlgProc@@YGHPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__GetWindowRect@8，该符号在函数 "int __stdcall DlgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DlgProc@@YGHPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__DefWindowProcA@16，该符号在函数 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__PostQuitMessage@4，该符号在函数 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__DestroyWindow@4，该符号在函数 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__EndPaint@8，该符号在函数 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__BeginPaint@8，该符号在函数 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__CreateWindowExA@48，该符号在函数 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__GetWindowLongA@8，该符号在函数 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__GetClientRect@8，该符号在函数 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__InitCommonControlsEx@4，该符号在函数 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__DispatchMessageA@4，该符号在函数 _WinMain@16 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__TranslateMessage@4，该符号在函数 _WinMain@16 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__TranslateAcceleratorA@12，该符号在函数 _WinMain@16 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__GetMessageA@16，该符号在函数 _WinMain@16 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__LoadAcceleratorsA@8，该符号在函数 _WinMain@16 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__UpdateWindow@4，该符号在函数 _WinMain@16 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__ShowWindow@8，该符号在函数 _WinMain@16 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__MessageBoxA@16，该符号在函数 _WinMain@16 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__RegisterClassA@4，该符号在函数 _WinMain@16 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__GetStockObject@4，该符号在函数 _WinMain@16 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__LoadCursorA@8，该符号在函数 _WinMain@16 中被引用</div><div>1&gt;GRMA.obj : error LNK2019: 无法解析的外部符号 __imp__LoadIconA@8，该符号在函数 _WinMain@16 中被引用</div><div>1&gt;E:\Visual Studio 2010\Projects\Guest Room Management App\Debug\Guest Room Management App.exe : fatal error LNK1120: 26 个无法解析的外部命令</div><div>1&gt;</div><div>1&gt;生成失败。</div><div>1&gt;</div><div>1&gt;已用时间 00:00:01.09</div><div>========== 生成: 成功 0 个，失败 1 个，最新 0 个，跳过 0 个 ==========<br /><div><div><span style="color: red; ">Gdi32.lib</span></div><div><span style="color: red; ">user32.lib<br /><br /></span></div></div></div></div><div><div>无法解析的外部符号 __imp__InitCommonControlsEx@4<br /><div><div><span style="color: red; ">comctl32.lib</span></div><div><span style="color: red; ">version.lib</span></div></div></div></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/161023.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-11-27 10:53 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/11/27/161023.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>非组合BCD码VS组合BCD码</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/11/06/159717.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Sun, 06 Nov 2011 10:16:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/11/06/159717.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/159717.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/11/06/159717.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/159717.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/159717.html</trackback:ping><description><![CDATA[<div><p align="left" style="text-align:left;"><span style="font-size:12.0pt; font-family:宋体;color:red;">计算机中的BCD码，经常使用的有两种格式，即分离BCD码，组合BCD码。 <br /> &nbsp;&nbsp;&nbsp; 所谓分离BCD码及未组合，即用一个字节的低四位编码表示十进制数的一位，</span><span style="font-size: 12pt; font-family: 宋体; ">例如数82的存放格式为： <br /> 00001000&nbsp;&nbsp; 00000010其中_表示无关值。 <br /> </span><span style="font-size:12.0pt;font-family:宋体;color:red;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size:12.0pt;font-family:宋体; color:red;">组合BCD码，是将两位十进制数，存放在一个字节中，例82的存放格式是1000 0010</span></p>  <p align="left" style="text-align:left;"><span style="font-size:12.0pt;font-family:宋体;color:red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size:12.0pt;font-family:宋体;color:red;">内存储器每个字节是由八位二进制的数组成，BCD码是由四位二进制的数组成。如果八位一个字节存放一个BCD码，称为未组合的BCD码，高四位为0，低四位存放一个BCD码；如果八位一个字节存放两个BCD码，称为组合的BCD码，高四位存放一个BCD码1，低四位存放另一个BCD码2。</span></p>  <p align="left" style="text-align:left;"><strong><span style="font-size:10.0pt;font-family:宋体;color:red;">最常用的BCD编码，就是使用"0"至"9"这十个数值的二进码来表示。这种编码方式，在中国大陆称之为&#8220;8421码&#8221;。除此以外，对应不同需求，各人亦开发了不同的编码方法，以适应不同的需求。这些编码，大致可以分成有权码和无权码两种： <br /> 有权BCD码，如：8421(最常用)、2421、5421&#8230; <br /> 无权BCD码，如：余3码、格雷码&#8230; </span></strong><strong></strong></p>  <p align="left" style="text-align:left;"><strong><span style="font-size: 10pt; font-family: 宋体; ">一、8421BCD码</span></strong><strong></strong></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; font-family: 宋体; ">　　二进制编码的十进制数，简称BCD码(Binarycoded Decimal). 这种方法是用4位二进制码的组合代表十进制数的0，1，2，3，4，5，6 ，7，8，9 十个数符。4位二进制数码有16种组合，原则上可任选其中的10种作为代码，分别代表十进制中的0，1，2，3，4，5，6，7，8，9 这十个数符。最常用的BCD码称为8421BCD码，8.4.2.1 分别是4位二进数的位取值。 右图为十进制数和8421BCD编码的对应关系表：</span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; font-family: 宋体; ">　　1、BCD码与十进制数的转换 </span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; font-family: 宋体; ">　　BCD码与十进制数的转换.关系直观，相互转换也很简单，将十进制数75.4转换为BCD码如: </span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; font-family: 宋体; ">　　75.4=(0111 0101.0100)BCD 若将BCD码1000 0101.0101转换为十进制数如: (1000 0101.0101)BCD＝85.5 </span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; font-family: 宋体; ">　　注意:同一个8位二进制代码表示的数，当认为它表示的是二进制数和认为它表示的是二进制编码的十进制数时，数值是不相同的。 </span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; font-family: 宋体; ">　　例如：00011000，当把它视为二进制数时，其值为24；但作为2位BCD码时， 其值为18。 </span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; font-family: 宋体; ">　　又例如00011100，如将其视为二进制数，其值为28，但不能当成BCD码，因为在8421BCD码中，它是个非法编码 . </span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; font-family: 宋体; ">　　3、BCD码的加减运算 </span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; font-family: 宋体; ">　　由于编码是将每个十进制数用一组4位二进制数来表示，因此，若将这种BCD码直接交计算机去运算，由于计算机总是把数当作二进制数来运算，所以结果可能会出错。例：用BCD码求38+49。 </span></p>  <span style="font-size: 12pt; font-family: 宋体; ">　　解决的办法是对二进制加法运算的结果采用</span><span style="font-size:12.0pt; font-family:宋体;color:red;">"</span><span style="font-size:12.0pt;font-family:宋体;color:red;">加6修正,这种修正称为BCD</span><span style="text-align: left; font-size: 12pt; ">调整</span><span style="text-align: left; font-size: 12pt; ">。即将二进制加法运算的结果修正为BCD码加法运算的结果,两个两位BCD数相加时,对二进制加法运算结果采用修正规则进行修正。修正规则：</span></div><div>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; ">　　(1)如果任何两个对应位BCD数相加的结果向高一位无进位，若得到的结果小于或等于9,则该不需修正;</span><span style="font-size: 12pt; ">若得到的结果大于9且小于16时,该位进行加6修正。 </span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; ">　　(2)如果任何两个对应位BCD数相加的结果结果大于或等于16</span><span style="font-size: 12pt; ">(</span><span style="font-size: 12pt; ">即向高一位有进位),时该位进行加6修正</span><span style="font-size: 12pt; ">. </span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; ">　　</span><span style="font-size: 12pt; ">(3)</span><span style="font-size: 12pt; ">低位修正结果使高位大于9时,高位进行加6修正。 </span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; ">　　下面通过例题验证上述规则的正确性。 </span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; ">　　用BCD码求35+21 BCD码求25+37 用BCD码求38+49 用BCD码求42+95 </span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; ">　　用BCD码求91+83 用BCD码求94+7 用BCD码求76+45 </span></p>  <p align="left" style="text-align:left;"><span style="font-size: 12pt; ">　　两个组合BCD码进行减法运算时,当低位向高位有借位时,由于"借一作十六"与"借一作十"的差别,将比正确的结果多6,所以有借位时,可采用"减6修正法"来修正.两个BCD码进行加减时,先按二进制加减指令进行运算,再对结果用BCD调整指令进行调整,就可得到正确的十进制运算结果。 实际上，计算机中既有组合BCD数的调整指令，也有分离BCD数的调整指令。另外,BCD码的加减运算,也可以在运算前由程序先变换成二进制数,然后由计算机对二进制数运算处理,运算以后再将二进制数结果由程序转换为BCD码。&nbsp;</span></p></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/159717.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-11-06 18:16 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/11/06/159717.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>杂记</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/11/06/159704.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Sun, 06 Nov 2011 03:55:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/11/06/159704.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/159704.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/11/06/159704.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/159704.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/159704.html</trackback:ping><description><![CDATA[-128的补码不是0吗,当我用<br />MOV AL, -128<br />NEG AL;<br />之后,果不其然,AL结果还是80H<br /><br /><img src ="http://www.cppblog.com/jxtgddlt/aggbug/159704.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-11-06 11:55 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/11/06/159704.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VS2010去除UNICODE</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/11/05/159652.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Sat, 05 Nov 2011 01:40:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/11/05/159652.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/159652.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/11/05/159652.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/159652.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/159652.html</trackback:ping><description><![CDATA[<div><font style="background-color: #c7edcc">项目-&gt;配置属性-&gt;C/C++-&gt;预处理器-&gt;预处理器定义-&gt;去掉继承选项</font></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/159652.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-11-05 09:40 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/11/05/159652.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>trick</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/11/04/159605.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Fri, 04 Nov 2011 05:17:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/11/04/159605.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/159605.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/11/04/159605.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/159605.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/159605.html</trackback:ping><description><![CDATA[<div><font style="background-color: #c7edcc">&nbsp;_numTriangles = _numCellsPerRow * _numCellsPerCol * 2;<br />// 三角形的数目 = 横边的数目*竖边的数目*2;<br /><br />// 求randfloat from lowBound to highBound
<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/None.gif"  alt="" /><span style="color: #0000ff">float</span><span style="color: #000000">&nbsp;d3d::GetRandomFloat(</span><span style="color: #0000ff">float</span><span style="color: #000000">&nbsp;lowBound,&nbsp;</span><span style="color: #0000ff">float</span><span style="color: #000000">&nbsp;highBound)<br /><img id="Codehighlighter1_59_307_Open_Image" onclick="this.style.display='none'; Codehighlighter1_59_307_Open_Text.style.display='none'; Codehighlighter1_59_307_Closed_Image.style.display='inline'; Codehighlighter1_59_307_Closed_Text.style.display='inline';" align="top" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_59_307_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_59_307_Closed_Text.style.display='none'; Codehighlighter1_59_307_Open_Image.style.display='inline'; Codehighlighter1_59_307_Open_Text.style.display='inline';" align="top" src="http://www.cppblog.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_59_307_Closed_Text"><img src="http://www.cppblog.com/Images/dot.gif"  alt="" /></span><span id="Codehighlighter1_59_307_Open_Text"><span style="color: #000000">{<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">if</span><span style="color: #000000">(&nbsp;lowBound&nbsp;</span><span style="color: #000000">&gt;=</span><span style="color: #000000">&nbsp;highBound&nbsp;)&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;bad&nbsp;input</span><span style="color: #008000"><br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" /></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">return</span><span style="color: #000000">&nbsp;lowBound;<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" /><br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;get&nbsp;random&nbsp;float&nbsp;in&nbsp;[0,&nbsp;1]&nbsp;interval</span><span style="color: #008000"><br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" /></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">float</span><span style="color: #000000">&nbsp;f&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;(rand()&nbsp;</span><span style="color: #000000">%</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">10000</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">*</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">0.0001f</span><span style="color: #000000">;&nbsp;<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" /><br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;return&nbsp;float&nbsp;in&nbsp;[lowBound,&nbsp;highBound]&nbsp;interval.&nbsp;</span><span style="color: #008000"><br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" /></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">return</span><span style="color: #000000">&nbsp;(f&nbsp;</span><span style="color: #000000">*</span><span style="color: #000000">&nbsp;(highBound&nbsp;</span><span style="color: #000000">-</span><span style="color: #000000">&nbsp;lowBound))&nbsp;</span><span style="color: #000000">+</span><span style="color: #000000">&nbsp;lowBound;&nbsp;<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif"  alt="" />}</span></span></div></font></div><img src ="http://www.cppblog.com/jxtgddlt/aggbug/159605.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-11-04 13:17 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/11/04/159605.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VS2010嵌入汇编模块前基本配置</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/11/02/159497.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Wed, 02 Nov 2011 05:00:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/11/02/159497.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/159497.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/11/02/159497.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/159497.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/159497.html</trackback:ping><description><![CDATA[<p>MASM in VisualStudio 2010</p>
<p>&nbsp;</p>
<p>First step:</p>
<p>&nbsp;</p>
<p>Create an empty project in Visual C++:</p>
<p><img alt="" src="http://hi.csdn.net/attachment/201109/16/0_13161448202etA.gif" /><br /></p>
<p>Second, right-click project in solutionexplorer, Build customizations, tick "masm",</p>
<p>&nbsp;<img alt="" src="http://hi.csdn.net/attachment/201109/16/0_1316144863PFJG.gif" /></p>
<p><img alt="" src="http://hi.csdn.net/attachment/201109/16/0_13161448928WQR.gif" /><br /></p>
<p>Then tap the right of mouse, select Add</p>
<p><img alt="" src="http://hi.csdn.net/attachment/201109/16/0_1316144930s0E0.gif" /><br /></p>
<p>Now, select C++ File(.cpp), enter the sourcefile name with .asm as extend file name. </p>
<p><img alt="" src="http://hi.csdn.net/attachment/201109/16/0_13161449586eU9.gif" /><br />Tap right of mouse, choose Properties:</p>
<p><img alt="" src="http://hi.csdn.net/attachment/201109/16/0_13161449844vFf.gif" /><br /></p>
<p>Expand the entry under ConfigurationProperties. Then expand the entry named Microsoft Macro Assembler.</p>
<p><img alt="" src="http://hi.csdn.net/attachment/201109/16/0_1316145015aU4M.gif" /><br /></p>
<p>Notice that the Include Paths option hasbeen set to the x:\file directory\include directory.</p>
<p>In this example, include directory isc:\Irvine.</p>
<p><img alt="" src="http://hi.csdn.net/attachment/201109/16/0_1316145059Jo4h.gif" /><br /></p>
<p align="left">Next, select the <strong>Listing File</strong> entry, also in theMicrosoft Macro Assembler group. Notice that the Assembled Code Listing Fileentry (shown below) has been assigned a macro name (starting with $) thatidentifies the name of the source input file, with a file extension of .lst.So, if your program were named main.asm, the listing file would be namedmain.lst: </p>
<p align="left"><img alt="" src="http://hi.csdn.net/attachment/201109/16/0_1316145094UV9j.gif" /><br /></p>
<p align="left">Find the Linker entry under <strong>ConfigurationProperties</strong>. Select the <strong>Input</strong> entry, and notice that two filenameshave been added to the <strong>Additional Dependencies</strong> entry. The <strong>user32.lib</strong>file is a standard MS-Windows file. The <strong>irvine32.lib</strong> file is the linklibrary file supplied with this book. There must be at least one spaceseparating the file names:</p>
<p align="left"><img alt="" src="http://hi.csdn.net/attachment/201109/16/0_1316145130ppAJ.gif" /><br /></p>
<p align="left">Next, select <strong>Linker</strong> underConfiguration Properties, and then select <strong>General</strong>. The <strong>AdditionalLibrary Directories</strong> option equals <strong>c:\Irvine</strong>, so the linker can findthe Irvine32.lib library file(you also can copy irvine32.lib to .../VC/LIB direcotry, so this would needn't to be done):</p>
<p align="left"><img alt="" src="http://hi.csdn.net/attachment/201109/16/0_1316145174HC0c.gif" /><br /></p>
<p align="left">Select <strong>Linker </strong>under the <strong>ConfigurationProperties</strong> and select <strong>Debugging</strong>. Notice that the <strong>Generate DebugInfo</strong> option is set to <strong>Yes:</strong></p>
<p align="left"><strong><img alt="" src="http://hi.csdn.net/attachment/201109/16/0_1316145209j0Mz.gif" /><br /></strong></p>
<p align="left">Select <strong>System</strong> under the <strong>Linker</strong>entry. Notice that the SubSystem option has been set to <strong>Console</strong>:</p>
<p align="left"><img alt="" src="http://hi.csdn.net/attachment/201109/16/0_13161452674oCn.gif" /><br /></p>
<p align="left">We use the Console settingbecause it is easy for assembly language programs to write output to a textconsole (Command) window. This is the window you see when running cmd.exe fromthe Start &gt; Run menu in Windows.</p>
<p align="left">Click the OK button to close theProject Property Pages window.</p><img src ="http://www.cppblog.com/jxtgddlt/aggbug/159497.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-11-02 13:00 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/11/02/159497.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>磁盘的磁道(track)</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/10/29/159326.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Sat, 29 Oct 2011 13:10:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/10/29/159326.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/159326.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/10/29/159326.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/159326.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/159326.html</trackback:ping><description><![CDATA[<ul><li>以前见到的很多磁道的示意图都是这样的：注意标线的位置，&#8220;指向一条线&#8221;，我当时的理解好像是这条线就是磁道。还有的解释是说磁道就是一个&#8220;同心圆&#8221;的集合</li></ul>
<p><img alt="" src="http://p.blog.csdn.net/images/p_blog_csdn_net/badbad_boy/EntryImages/20090701/wrong_track.JPG" width="590" height="421" /> </p>
<p>那么，我的疑问就是，既然那条线是同心圆，那么两条线之间的那快空白是什么呀？ 什么也不是？ 空着的？ 就是为了分开磁道？晕倒。那这浪费的部分也太多了吧。毕竟两条线中间部分的宽度看起来比磁道可实在是宽太多了。</p>
<ul><li>后来，查了下别的图片，才发现磁道原来应该是这样子的：不是&#8220;同心圆&#8221;，应该是&#8220;同心圆环&#8221; </li></ul>
<p><img alt="" src="http://p.blog.csdn.net/images/p_blog_csdn_net/badbad_boy/EntryImages/20090701/track_sector2.JPG" width="414" height="380" /> </p>
<p>&nbsp;</p>
<p><img alt="" src="http://p.blog.csdn.net/images/p_blog_csdn_net/badbad_boy/EntryImages/20090701/track_sector.JPG" width="545" height="464" /> </p>
<p>&nbsp;</p>
<p>到此，我关于磁道的疑问才终于有了答案。 汗自己一个！！！</p>
<p>&nbsp;</p>
<p>后来又联想到了其他的问题：</p>
<h4>每个磁道上的扇区数目是一样的么？</h4>
<ul><li>早期的磁盘每个磁道上的扇区数目是一样，限制了磁盘的容量；后来为了增大磁盘容量采用了新技术，也就是说越往外每磁道扇区数目越多</li><li>早期的硬盘是每个磁道有相同的扇区,但是现在的硬盘采用线性寻址,所以每个磁道上扇区数不一样,外面的多,里面的少.光盘跟硬盘差不多.但是用螺线的.不像硬盘采用同心圆</li><li>不过，还是可以用CHS（柱面，磁道，扇区）的方式来定位， 因为IDE磁盘做了内部转换，让你看起来好像每条磁道上面的簇数量都是一样的</li></ul>
<h4>0磁道是在磁盘的外圈还是内圈</h4>
<ul><li>由于历史原因 ， 磁盘的0磁道在最外圈（过去的老式硬盘，每条磁道上的簇的数量都是一样多的。也就是说最里面和最外面的磁道的簇的数目是一样的。显然，磁密度越低，数据的安全越有保障。而MBR放在0柱面的，第0个磁道的，第1个簇上面，为了这个关键数据的安全，所以磁道要从最外开始安排。）</li><li>但是，光盘的0磁道和磁盘，软盘刚好向盘，光盘的0磁道是在最内圈的</li></ul>
<h4>尽管扇区是能独立寻址的最小单位，但资源分配的最小单位是簇</h4>
<ul><li>所以文件的大小和文件所占用的磁盘空间是不同的。所占用的磁盘空间往往多余文件的大小 </li></ul>
<h4>硬盘簇的大小设为多少才合适</h4>
<ul><li>默认的情况下，在格式化的时侯如果没有指定簇的大小，那么系统会根据分区的大小选择默认的簇值</li><li>其实在NTFS文件系统中格式化的时候,可以在&#8220;Format&#8221;命令后面添加&#8220;／a：UnitSize&#8221;参数来指定簇的大小，UnitSize表示簇大小的值，NTFS支持512／1024／2048／4096／8192／16K／32K／64KB</li><li>在NTFS文件系统中，簇的大小会影响到磁盘文件的排列，设置适当的簇大小可以减少磁盘空间丢失和分区上碎片的数量。如果簇设置过大，会影响到磁盘存储效率；反之如果设置过小，虽然会提高利用效率，但是会产生大量磁盘碎片.</li></ul><img src ="http://www.cppblog.com/jxtgddlt/aggbug/159326.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-10-29 21:10 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/10/29/159326.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>无法解析的外部符号:error LNK2019</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/10/25/159044.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Tue, 25 Oct 2011 05:29:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/10/25/159044.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/159044.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/10/25/159044.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/159044.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/159044.html</trackback:ping><description><![CDATA[1&gt;terrain.obj : <span style="color: red">error LNK2019</span>: 无法解析的外部符号 "float __cdecl d3d::Lerp(float,float,float)" (<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#63;&#76;&#101;&#114;&#112;&#64;&#100;&#51;&#100;&#64;&#64;&#89;&#65;&#77;&#77;&#77;&#77;&#64;&#90;">?Lerp@d3d@@YAMMMM@Z</a>)，该符号在函数 "public: float __thiscall Terrain::getHeight(float,float)" (<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#63;&#103;&#101;&#116;&#72;&#101;&#105;&#103;&#104;&#116;&#64;&#84;&#101;&#114;&#114;&#97;&#105;&#110;&#64;&#64;&#81;&#65;&#69;&#77;&#77;&#77;&#64;&#90;">?getHeight@Terrain@@QAEMMM@Z</a>) 中被引用<br />1&gt;terrainDriver.obj : error LNK2019: 无法解析的外部符号 "bool __cdecl d3d::InitD3D(struct HINSTANCE__ *,int,int,bool,enum _D3DDEVTYPE,struct IDirect3DDevice9 * *)" (<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#63;&#73;&#110;&#105;&#116;&#68;&#51;&#68;&#64;&#100;&#51;&#100;&#64;&#64;&#89;&#65;&#95;&#78;&#80;&#65;&#85;&#72;&#73;&#78;&#83;&#84;&#65;&#78;&#67;&#69;&#95;&#95;&#64;&#64;&#72;&#72;&#95;&#78;&#87;&#52;&#95;&#68;&#51;&#68;&#68;&#69;&#86;&#84;&#89;&#80;&#69;&#64;&#64;&#80;&#65;&#80;&#65;&#85;&#73;&#68;&#105;&#114;&#101;&#99;&#116;&#51;&#68;&#68;&#101;&#118;&#105;&#99;&#101;&#57;&#64;&#64;&#64;&#90;">?InitD3D@d3d@@YA_NPAUHINSTANCE__@@HH_NW4_D3DDEVTYPE@@PAPAUIDirect3DDevice9@@@Z</a>)，该符号在函数 <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#95;&#87;&#105;&#110;&#77;&#97;&#105;&#110;&#64;&#49;&#54;">_WinMain@16</a> 中被引用<br /><br /><br />解决方案:将Lerp定义复制到.h文件中,重新运行一下,若还是出错,再拷贝回来。<br />由于该加的.lib文件都加上了,所以还出现这种错误就是编译器的原因,具体不甚了解.<br /><span style="color: red">一般无法解析的外部符号都是因为.lib文件没有包含或者对应函数没有实现定义,如果还是出错的话,那就重新编写一遍,因为可能是拷贝过来的文件,编译器有些问题。</span><img src ="http://www.cppblog.com/jxtgddlt/aggbug/159044.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-10-25 13:29 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/10/25/159044.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>作用域</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/10/24/158992.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Mon, 24 Oct 2011 11:27:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/10/24/158992.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/158992.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/10/24/158992.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/158992.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/158992.html</trackback:ping><description><![CDATA[<p><span style="color: #0000ff"></span><span style="color: #000000">&nbsp;</p>
<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/None.gif"  alt="" /><span style="color: #0000ff">int</span><span style="color: #000000">&nbsp;x</span><span style="color: #000000">=</span><span style="color: #000000">5</span><span style="color: #000000">;<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/None.gif"  alt="" /></span><span style="color: #0000ff">int</span><span style="color: #000000">&nbsp;main()<br /><img id="Codehighlighter1_20_41_Open_Image" onclick="this.style.display='none'; Codehighlighter1_20_41_Open_Text.style.display='none'; Codehighlighter1_20_41_Closed_Image.style.display='inline'; Codehighlighter1_20_41_Closed_Text.style.display='inline';" align="top" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_20_41_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_20_41_Closed_Text.style.display='none'; Codehighlighter1_20_41_Open_Image.style.display='inline'; Codehighlighter1_20_41_Open_Text.style.display='inline';" align="top" src="http://www.cppblog.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_20_41_Closed_Text"><img src="http://www.cppblog.com/Images/dot.gif"  alt="" /></span><span id="Codehighlighter1_20_41_Open_Text"><span style="color: #000000">{<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" /></span><span style="color: #0000ff">int</span><span style="color: #000000">&nbsp;x</span><span style="color: #000000">=</span><span style="color: #000000">x;<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" /></span><span style="color: #0000ff">return</span><span style="color: #000000">&nbsp;x;<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif"  alt="" />}</span></span><span style="color: #000000"><br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/None.gif"  alt="" /></span></div>
<p><font color="#0000ff">结果：debug error</font></span></p><img src ="http://www.cppblog.com/jxtgddlt/aggbug/158992.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-10-24 19:27 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/10/24/158992.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>multimap容器不能用greater_equal</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/10/19/158715.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Wed, 19 Oct 2011 14:57:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/10/19/158715.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/158715.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/10/19/158715.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/158715.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/158715.html</trackback:ping><description><![CDATA[<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/None.gif"  alt="" /><span style="color: #000000">template</span><span style="color: #000000">&lt;</span><span style="color: #0000ff">class</span><span style="color: #000000">&nbsp;_Pr,&nbsp;</span><span style="color: #0000ff">class</span><span style="color: #000000">&nbsp;_Ty1,&nbsp;</span><span style="color: #0000ff">class</span><span style="color: #000000">&nbsp;_Ty2</span><span style="color: #000000">&gt;</span><span style="color: #000000">&nbsp;inline<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">bool</span><span style="color: #000000">&nbsp;__CLRCALL_OR_CDECL&nbsp;_Debug_lt_pred(_Pr&nbsp;_Pred,&nbsp;</span><span style="color: #0000ff">const</span><span style="color: #000000">&nbsp;_Ty1</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;_Left,&nbsp;</span><span style="color: #0000ff">const</span><span style="color: #000000">&nbsp;_Ty2</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;_Right,<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">const</span><span style="color: #000000">&nbsp;wchar_t&nbsp;</span><span style="color: #000000">*</span><span style="color: #000000">_Where,&nbsp;unsigned&nbsp;</span><span style="color: #0000ff">int</span><span style="color: #000000">&nbsp;_Line)<br /><img id="Codehighlighter1_185_400_Open_Image" onclick="this.style.display='none'; Codehighlighter1_185_400_Open_Text.style.display='none'; Codehighlighter1_185_400_Closed_Image.style.display='inline'; Codehighlighter1_185_400_Closed_Text.style.display='inline';" align="top" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_185_400_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_185_400_Closed_Text.style.display='none'; Codehighlighter1_185_400_Open_Image.style.display='inline'; Codehighlighter1_185_400_Open_Text.style.display='inline';" align="top" src="http://www.cppblog.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_185_400_Closed_Text"><img src="http://www.cppblog.com/Images/dot.gif"  alt="" /></span><span id="Codehighlighter1_185_400_Open_Text"><span style="color: #000000">{&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;test&nbsp;if&nbsp;_Pred(_Left,&nbsp;_Right)&nbsp;and&nbsp;_Pred&nbsp;is&nbsp;strict&nbsp;weak&nbsp;ordering</span><span style="color: #008000"><br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" /></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(</span><span style="color: #000000">!</span><span style="color: #000000">_Pred(_Left,&nbsp;_Right))<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">return</span><span style="color: #000000">&nbsp;(</span><span style="color: #0000ff">false</span><span style="color: #000000">);<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">else</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(_Pred(_Right,&nbsp;_Left))<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_DEBUG_ERROR2(</span><span style="color: #000000">"</span><span style="color: #000000">invalid&nbsp;operator&lt;</span><span style="color: #000000">"</span><span style="color: #000000">,&nbsp;_Where,&nbsp;_Line);<br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/InBlock.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: red">return</span><span style="color: red">&nbsp;(</span><span style="color: red">true</span><span style="color: red">);</span><span style="color: red">}</span><span style="color: #000000"><br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif"  alt="" /></span></span><span style="color: #000000"><br /><img align="top" src="http://www.cppblog.com/images/OutliningIndicators/None.gif"  alt="" /></span></div><br />因此,相等的时候就不行<img src ="http://www.cppblog.com/jxtgddlt/aggbug/158715.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-10-19 22:57 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/10/19/158715.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>#ifdef DEBUG</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/10/13/158247.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Thu, 13 Oct 2011 11:02:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/10/13/158247.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/158247.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/10/13/158247.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/158247.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/158247.html</trackback:ping><description><![CDATA[在调试程序时，常常希望输出一些所需的信息，而在调试完成后不再输出这些信息。可以在源程序中插入以下的条件编译段： 
<p style="text-indent: 2em">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>#ifdef <span style="color: red">DEBUG</span></p>
<p style="text-indent: 2em">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>print ("device_open(%p)\n", file);</p>
<p style="text-indent: 2em">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>#endif</p>
<p style="text-indent: 2em">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></p>
<p style="text-indent: 2em">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>如果在它的前面有以下命令行：</p>
<p style="text-indent: 2em">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>#define DEBUG</p>
<p style="text-indent: 2em">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></p>
<p style="text-indent: 2em">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>则在程序运行时输出file指针的值，以便调试分析。调试完成后只需将这个define命令行删除即可。有人可能觉得不用条件编译也可达此目的，即在调试时加一批printf语句，调试后一一将printf语句删除去。的确，这是可以的。但是，当调试时加的printf语句比较多时，修改的工作量是很大的。用条件编译，则不必一一删改printf语句，只需删除前面的一条&#8220;#define DEBUG&#8221;命令即可，这时所有的用DEBUG作标识符的条件编译段都使其中的printf语句不起作用，即起统一控制的作用，如同一个&#8220;开关&#8221;一样。</p><img src ="http://www.cppblog.com/jxtgddlt/aggbug/158247.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-10-13 19:02 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/10/13/158247.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title> 无法解析的外部符号 __imp__ExtractIconW@12</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/10/13/158244.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Thu, 13 Oct 2011 10:40:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/10/13/158244.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/158244.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/10/13/158244.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/158244.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/158244.html</trackback:ping><description><![CDATA[<br />1&gt;dxut.obj : error LNK2019: 无法解析的外部符号 <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#95;&#95;&#105;&#109;&#112;&#95;&#95;&#69;&#120;&#116;&#114;&#97;&#99;&#116;&#73;&#99;&#111;&#110;&#87;&#64;&#49;&#50;">__imp__ExtractIconW@12</a>，该符号在函数 "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#63;&#68;&#88;&#85;&#84;&#67;&#114;&#101;&#97;&#116;&#101;&#87;&#105;&#110;&#100;&#111;&#119;&#64;&#64;&#89;&#65;&#74;&#80;&#66;&#95;&#87;&#80;&#65;&#85;&#72;&#73;&#78;&#83;&#84;&#65;&#78;&#67;&#69;&#95;&#95;&#64;&#64;&#80;&#65;&#85;&#72;&#73;&#67;&#79;&#78;&#95;&#95;&#64;&#64;&#80;&#65;&#85;&#72;&#77;&#69;&#78;&#85;&#95;&#95;&#64;&#64;&#72;&#72;&#64;&#90;">?DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z</a>) 中被引用<br /><br /><br />solution:<br />add<span style="color: red"> shell32.lib</span><img src ="http://www.cppblog.com/jxtgddlt/aggbug/158244.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-10-13 18:40 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/10/13/158244.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>无法打开文件"dxerr9.lib"</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/10/13/158240.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Thu, 13 Oct 2011 10:20:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/10/13/158240.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/158240.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/10/13/158240.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/158240.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/158240.html</trackback:ping><description><![CDATA[问题描述：使用Visual Studio 2010，DX10 SDK打开旧版本（DX9）的项目，编译运行时候提示为<br />fatal error LNK1104: 无法打开文件&#8220;dxerr9.lib&#8221;<br />================================================<br />问题原因：DX10中将dxerr9.lib变成了dxerr.lib(显然DX8中这个文件叫dxerr8.lib)<br />解决方法：<br />在属性管理器中，右击解决方案-&gt;属性-&gt;连接器-&gt;输入-&gt;附加依赖项，在里面找到dxerr9.lib,改成dxerr.lib<br />问题解决。<img src ="http://www.cppblog.com/jxtgddlt/aggbug/158240.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-10-13 18:20 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/10/13/158240.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>无法解析的外部符号 RegQueryValueEx、RegCloseKey、RegOpenKeyEx、RegSetValueEx...</title><link>http://www.cppblog.com/jxtgddlt/archive/2011/10/05/157558.html</link><dc:creator>メmarsメ</dc:creator><author>メmarsメ</author><pubDate>Wed, 05 Oct 2011 05:21:00 GMT</pubDate><guid>http://www.cppblog.com/jxtgddlt/archive/2011/10/05/157558.html</guid><wfw:comment>http://www.cppblog.com/jxtgddlt/comments/157558.html</wfw:comment><comments>http://www.cppblog.com/jxtgddlt/archive/2011/10/05/157558.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/jxtgddlt/comments/commentRss/157558.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/jxtgddlt/services/trackbacks/157558.html</trackback:ping><description><![CDATA[1&gt;------ 已启动生成: 项目: WinTest, 配置: Debug Win32 ------<br />1&gt;生成启动时间为 2011/10/5 12:35:59。<br />1&gt;InitializeBuildStatus:<br />1&gt;&nbsp; 正在对&#8220;Debug\WinTest.unsuccessfulbuild&#8221;执行 Touch 任务。<br />1&gt;ClCompile:<br />1&gt;&nbsp; 所有输出均为最新。<br />1&gt;ResourceCompile:<br />1&gt;&nbsp; 所有输出均为最新。<br />1&gt;ManifestResourceCompile:<br />1&gt;&nbsp; 所有输出均为最新。<br />1&gt;d3dUtility.obj : error LNK2005: "long __stdcall d3d::WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#63;&#87;&#110;&#100;&#80;&#114;&#111;&#99;&#64;&#100;&#51;&#100;&#64;&#64;&#89;&#71;&#74;&#80;&#65;&#85;&#72;&#87;&#78;&#68;&#95;&#95;&#64;&#64;&#73;&#73;&#74;&#64;&#90;">?WndProc@d3d@@YGJPAUHWND__@@IIJ@Z</a>) 已经在 cfont.obj 中定义<br />1&gt;cfont.obj : error LNK2019: 无法解析的外部符号 "bool __cdecl d3d::InitD3D(struct HINSTANCE__ *,int,int,bool,enum _D3DDEVTYPE,struct IDirect3DDevice9 * *)" (<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#63;&#73;&#110;&#105;&#116;&#68;&#51;&#68;&#64;&#100;&#51;&#100;&#64;&#64;&#89;&#65;&#95;&#78;&#80;&#65;&#85;&#72;&#73;&#78;&#83;&#84;&#65;&#78;&#67;&#69;&#95;&#95;&#64;&#64;&#72;&#72;&#95;&#78;&#87;&#52;&#95;&#68;&#51;&#68;&#68;&#69;&#86;&#84;&#89;&#80;&#69;&#64;&#64;&#80;&#65;&#80;&#65;&#85;&#73;&#68;&#105;&#114;&#101;&#99;&#116;&#51;&#68;&#68;&#101;&#118;&#105;&#99;&#101;&#57;&#64;&#64;&#64;&#90;">?InitD3D@d3d@@YA_NPAUHINSTANCE__@@HH_NW4_D3DDEVTYPE@@PAPAUIDirect3DDevice9@@@Z</a>)，该符号在函数 <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#95;&#87;&#105;&#110;&#77;&#97;&#105;&#110;&#64;&#49;&#54;">_WinMain@16</a> 中被引用<br />1&gt;dxutil.obj : error LNK2019: 无法解析的外部符号 <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#95;&#95;&#105;&#109;&#112;&#95;&#95;&#82;&#101;&#103;&#67;&#108;&#111;&#115;&#101;&#75;&#101;&#121;&#64;&#52;">__imp__RegCloseKey@4</a>，该符号在函数 "long __cdecl DXUtil_GetDXSDKMediaPathCch(wchar_t *,int)" (<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#63;&#68;&#88;&#85;&#116;&#105;&#108;&#95;&#71;&#101;&#116;&#68;&#88;&#83;&#68;&#75;&#77;&#101;&#100;&#105;&#97;&#80;&#97;&#116;&#104;&#67;&#99;&#104;&#64;&#64;&#89;&#65;&#74;&#80;&#65;&#95;&#87;&#72;&#64;&#90;">?DXUtil_GetDXSDKMediaPathCch@@YAJPA_WH@Z</a>) 中被引用<br />1&gt;dxutil.obj : error LNK2019: 无法解析的外部符号 <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#95;&#95;&#105;&#109;&#112;&#95;&#95;&#82;&#101;&#103;&#81;&#117;&#101;&#114;&#121;&#86;&#97;&#108;&#117;&#101;&#69;&#120;&#87;&#64;&#50;&#52;">__imp__RegQueryValueExW@24</a>，该符号在函数 "long __cdecl DXUtil_GetDXSDKMediaPathCch(wchar_t *,int)" (<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#63;&#68;&#88;&#85;&#116;&#105;&#108;&#95;&#71;&#101;&#116;&#68;&#88;&#83;&#68;&#75;&#77;&#101;&#100;&#105;&#97;&#80;&#97;&#116;&#104;&#67;&#99;&#104;&#64;&#64;&#89;&#65;&#74;&#80;&#65;&#95;&#87;&#72;&#64;&#90;">?DXUtil_GetDXSDKMediaPathCch@@YAJPA_WH@Z</a>) 中被引用<br />1&gt;dxutil.obj : error LNK2019: 无法解析的外部符号 <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#95;&#95;&#105;&#109;&#112;&#95;&#95;&#82;&#101;&#103;&#79;&#112;&#101;&#110;&#75;&#101;&#121;&#69;&#120;&#87;&#64;&#50;&#48;">__imp__RegOpenKeyExW@20</a>，该符号在函数 "long __cdecl DXUtil_GetDXSDKMediaPathCch(wchar_t *,int)" (<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#63;&#68;&#88;&#85;&#116;&#105;&#108;&#95;&#71;&#101;&#116;&#68;&#88;&#83;&#68;&#75;&#77;&#101;&#100;&#105;&#97;&#80;&#97;&#116;&#104;&#67;&#99;&#104;&#64;&#64;&#89;&#65;&#74;&#80;&#65;&#95;&#87;&#72;&#64;&#90;">?DXUtil_GetDXSDKMediaPathCch@@YAJPA_WH@Z</a>) 中被引用<br />1&gt;dxutil.obj : error LNK2019: 无法解析的外部符号 <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#95;&#95;&#105;&#109;&#112;&#95;&#95;&#82;&#101;&#103;&#83;&#101;&#116;&#86;&#97;&#108;&#117;&#101;&#69;&#120;&#87;&#64;&#50;&#52;">__imp__RegSetValueExW@24</a>，该符号在函数 "long __cdecl DXUtil_WriteStringRegKey(struct HKEY__ *,wchar_t *,wchar_t *)" (<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#63;&#68;&#88;&#85;&#116;&#105;&#108;&#95;&#87;&#114;&#105;&#116;&#101;&#83;&#116;&#114;&#105;&#110;&#103;&#82;&#101;&#103;&#75;&#101;&#121;&#64;&#64;&#89;&#65;&#74;&#80;&#65;&#85;&#72;&#75;&#69;&#89;&#95;&#95;&#64;&#64;&#80;&#65;&#95;&#87;&#49;&#64;&#90;">?DXUtil_WriteStringRegKey@@YAJPAUHKEY__@@PA_W1@Z</a>) 中被引用<br />1&gt;E:\Visual Studio 2010\Projects\WinTest\Debug\WinTest.exe : fatal error LNK1120: 5 个无法解析的外部命令<br />1&gt;<br />1&gt;生成失败。<br />1&gt;<br />1&gt;已用时间 00:00:01.19<br />========== 生成: 成功 0 个，失败 1 个，最新 0 个，跳过 0 个 ==========<br /><br /><br /><span style="color: red">solution：未包含AdvAPI32.lib<br /></span><br />1&gt;d3dUtility.obj : error LNK2005: "long __stdcall d3d::WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#63;&#87;&#110;&#100;&#80;&#114;&#111;&#99;&#64;&#100;&#51;&#100;&#64;&#64;&#89;&#71;&#74;&#80;&#65;&#85;&#72;&#87;&#78;&#68;&#95;&#95;&#64;&#64;&#73;&#73;&#74;&#64;&#90;">?WndProc@d3d@@YGJPAUHWND__@@IIJ@Z</a>) 已经在 cfont.obj 中定义<br />1&gt;cfont.obj : error LNK2019: 无法解析的外部符号 "bool __cdecl d3d::InitD3D(struct HINSTANCE__ *,int,int,bool,enum _D3DDEVTYPE,struct IDirect3DDevice9 * *)" (<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#63;&#73;&#110;&#105;&#116;&#68;&#51;&#68;&#64;&#100;&#51;&#100;&#64;&#64;&#89;&#65;&#95;&#78;&#80;&#65;&#85;&#72;&#73;&#78;&#83;&#84;&#65;&#78;&#67;&#69;&#95;&#95;&#64;&#64;&#72;&#72;&#95;&#78;&#87;&#52;&#95;&#68;&#51;&#68;&#68;&#69;&#86;&#84;&#89;&#80;&#69;&#64;&#64;&#80;&#65;&#80;&#65;&#85;&#73;&#68;&#105;&#114;&#101;&#99;&#116;&#51;&#68;&#68;&#101;&#118;&#105;&#99;&#101;&#57;&#64;&#64;&#64;&#90;">?InitD3D@d3d@@YA_NPAUHINSTANCE__@@HH_NW4_D3DDEVTYPE@@PAPAUIDirect3DDevice9@@@Z</a>)，该符号在函数 <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#95;&#87;&#105;&#110;&#77;&#97;&#105;&#110;&#64;&#49;&#54;">_WinMain@16</a> 中被引用<br /><span style="color: red">这两个错误有点莫名其妙：将问题函数声明重新敲一遍...不能复制的</span><br /><img src ="http://www.cppblog.com/jxtgddlt/aggbug/157558.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/jxtgddlt/" target="_blank">メmarsメ</a> 2011-10-05 13:21 <a href="http://www.cppblog.com/jxtgddlt/archive/2011/10/05/157558.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>