﻿<?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++博客-wy</title><link>http://www.cppblog.com/wy/</link><description /><language>zh-cn</language><lastBuildDate>Fri, 03 Apr 2026 21:03:38 GMT</lastBuildDate><pubDate>Fri, 03 Apr 2026 21:03:38 GMT</pubDate><ttl>60</ttl><item><title>杀进程</title><link>http://www.cppblog.com/wy/archive/2008/04/29/48449.html</link><dc:creator>鱼儿</dc:creator><author>鱼儿</author><pubDate>Tue, 29 Apr 2008 07:22:00 GMT</pubDate><guid>http://www.cppblog.com/wy/archive/2008/04/29/48449.html</guid><wfw:comment>http://www.cppblog.com/wy/comments/48449.html</wfw:comment><comments>http://www.cppblog.com/wy/archive/2008/04/29/48449.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wy/comments/commentRss/48449.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wy/services/trackbacks/48449.html</trackback:ping><description><![CDATA[显示进程列表：<br>tasklist<br><br>杀进程命令：<br>1、tskill<br>2、ntsd -c q -p PID的值<br>3、taskkill 
<img src ="http://www.cppblog.com/wy/aggbug/48449.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wy/" target="_blank">鱼儿</a> 2008-04-29 15:22 <a href="http://www.cppblog.com/wy/archive/2008/04/29/48449.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>菜单项为何总是变灰</title><link>http://www.cppblog.com/wy/archive/2008/01/23/41698.html</link><dc:creator>鱼儿</dc:creator><author>鱼儿</author><pubDate>Wed, 23 Jan 2008 02:53:00 GMT</pubDate><guid>http://www.cppblog.com/wy/archive/2008/01/23/41698.html</guid><wfw:comment>http://www.cppblog.com/wy/comments/41698.html</wfw:comment><comments>http://www.cppblog.com/wy/archive/2008/01/23/41698.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wy/comments/commentRss/41698.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wy/services/trackbacks/41698.html</trackback:ping><description><![CDATA[<p>&nbsp;程序是SDI&nbsp;<br>我在&#8220;帮助&#8221;菜单项再添加一个菜单项，或是在单独添加菜单项&nbsp;<br>菜单始终是变灰的，这是何解？&nbsp;<br>请告诉我原由 <br><br>对了，光使用EnableMenuItem是不行的，正确的方法如下： <br>需要将CFrameWnd:: m_bAutoMenuEnable设置为FALSE，如果该数据成 <br>员为TRUE（缺省值），工作框将自动地禁止没有ON_UPDATE_COMMAND_UI <br>或者ON_COMMAND的菜单项。 </p>
<p>//Disable MFC from automatically disabling menu items. <br><span style="COLOR: #800000">可以在MainFrame的结构函数中增加:<br>m_bAutoMenuEnable=FALSE;<br>则菜单和工具条不会自动Disable或Enable.<br></span><br><br>//Now enable the menu item. <br>CMenu* pMenu=GetMenu () <br>ASSERT_VALID (pMenu) </p>
<p>pMenu-&gt;EnableMenuItem (ID_MENU_ITEM,MF_BYCOMMAND | MF_ENABLED)</p>
<img src ="http://www.cppblog.com/wy/aggbug/41698.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wy/" target="_blank">鱼儿</a> 2008-01-23 10:53 <a href="http://www.cppblog.com/wy/archive/2008/01/23/41698.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何：使用 XCopy 进行部署</title><link>http://www.cppblog.com/wy/archive/2006/04/21/6030.html</link><dc:creator>鱼儿</dc:creator><author>鱼儿</author><pubDate>Fri, 21 Apr 2006 07:35:00 GMT</pubDate><guid>http://www.cppblog.com/wy/archive/2006/04/21/6030.html</guid><wfw:comment>http://www.cppblog.com/wy/comments/6030.html</wfw:comment><comments>http://www.cppblog.com/wy/archive/2006/04/21/6030.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wy/comments/commentRss/6030.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wy/services/trackbacks/6030.html</trackback:ping><description><![CDATA[<p>本主题演示如何通过将应用程序文件从一台计算机复制到另一台计算机来部署应用程序。此技术对于在其他计算机上调试应用程序很有用。有关此部署方案的背景，请参见<a onclick="javascript:TrackThisClick('ctl00_LibFrame_ctl01','ctl00_LibFrame_ctl02',this);" href="http://msdn2.microsoft.com/zh-CN/library/ms235285.aspx">部署示例</a>。</p>
<h1 class=heading>将 Visual C++ 库 DLL 部署为共享程序集</h1>
<div class=section id=procedureSection0>
<ol>
    <li>
    <p>在开发计算机上创建一个文件夹结构，让其与将在目标计算机上使用的文件夹结构一致。对于此示例，创建一个 \bin 文件夹并将 myapplication.exe 复制到其中。然后，创建一个 \bin\mylibrary 文件夹并将 MyLibrary.dll 复制到其中。</p>
    <li>
    <p>将此文件夹复制到目标计算机。</p>
    <li>
    <p>将 vcredist_x86.exe from %PROGDIR%\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages\vcredist_x86\vcredist_x86.exe 复制到目标计算机</p>
    <li>
    <p>在目标计算机上运行 vcredist_x86.exe。这将安装所有 Visual C++ 库作为共享程序集。在支持应用程序到其依赖项的基于清单的绑定的目标计算机 (Windows XP Home Edition、Windows XP Professional、Windows Server 2003) 上，这些库将安装到 WinSxS 文件夹中。在不支持类似绑定的目标计算机（Windows 95、Windows 98、Windows 98 Second Edition、Windows Millennium Edition 和 Windows 2000）上，这些库安装到 WinSxS 和 System32 两个文件夹中。</p>
    <div class=alert>
    <table cellSpacing=0 cellPadding=0 width="100%">
        <tbody>
            <tr>
                <th align=left><img class=note alt=Note src="http://msdn2.microsoft.com/zh-CN/library/ms235291.note.gif">注意</th>
            </tr>
            <tr>
                <td>
                <p>对于将 64 位应用程序部署到 64 位操行系统，使用 vcredist_x64.exe 或 vcredist_ia64.exe。</p>
                </td>
            </tr>
        </tbody>
    </table>
    </div>
    <div class=alert>
    <table cellSpacing=0 cellPadding=0 width="100%">
        <tbody>
            <tr>
                <th align=left><img class=note alt=Note src="http://msdn2.microsoft.com/zh-CN/library/ms235291.note.gif">注意</th>
            </tr>
            <tr>
                <td>
                <p>vcredist_*.exe 仅安装发布版本的 Visual C++ DLL。调试版本只应当作为私有程序集部署；有关更详细信息，请参见下一个过程。</p>
                </td>
            </tr>
        </tbody>
    </table>
    </div>
    <li>
    <p>您的应用程序可以运行了。</p>
    </li>
</ol>
</div>
<h1 class=heading>将 Visual C++ 库 DLL 部署为私有程序集</h1>
<div class=section id=procedureSection1>
<ol>
    <li>
    <p>在开发计算机上创建一个文件夹结构，让其与将在目标计算机上使用的文件夹结构一致。对于此示例，创建一个 \bin 文件夹并将 myapplication.exe 复制到其中。然后，创建一个 \bin\mylibrary 文件夹并将 MyLibrary.dll 复制到其中。</p>
    <li>
    <p>在开发计算机上，将 Microsoft.VC80.CRT 和 Microsoft.VC80.MFC 从 %PROGDIR%\Microsoft Visual Studio 8\VC\Redist\x86 复制到 \bin 和 \bin\MyLibrary 中。</p>
    <div class=alert>
    <table cellSpacing=0 cellPadding=0 width="100%">
        <tbody>
            <tr>
                <th align=left>注意</th>
            </tr>
            <tr>
                <td>
                <p>对于将 64 位应用程序部署到 64 位操作系统，使用 \vc\redist\amd64 或 \vc\redist\ia64。</p>
                </td>
            </tr>
        </tbody>
    </table>
    </div>
    <li>
    <p>将 \bin 文件夹复制到目标计算机。在支持基于清单的绑定的目标计算机 (Windows XP Home Edition、Windows XP Professional、Windows Server 2003) 上，没有必要做进一步的准备。在不支持类似绑定的计算机（Windows 95、Windows 98、Windows 98 Second Edition、Windows Millennium Edition 和 Windows 2000）上，路径中必须有 Microsoft.VC80.CRT 和 Microsoft.VC80.MFC。</p>
    <div class=alert>
    <table cellSpacing=0 cellPadding=0 width="100%">
        <tbody>
            <tr>
                <th align=left>注意</th>
            </tr>
            <tr>
                <td>
                <p>对于调试应用程序，使用 \vc\redist\debug_nonredist\ 中的 DLL。</p>
                </td>
            </tr>
        </tbody>
    </table>
    </div>
    </li>
</ol>
</div>
<br><br>[http://msdn2.microsoft.com/zh-CN/library/ms235291.aspx] 
<img src ="http://www.cppblog.com/wy/aggbug/6030.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wy/" target="_blank">鱼儿</a> 2006-04-21 15:35 <a href="http://www.cppblog.com/wy/archive/2006/04/21/6030.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>