VC++6.0 在 Win7 中“打开 按钮不能使用等问题的解决
方案 打开”按钮不能 打开 按钮不能使 等
问题的
由于微软的一个错误导致在安装了 office2007 或者 office2010 后的 win7 机器上的上个世纪的古老产品 VC++6.0 的打开按钮不 能用。其实微软 C++的 IDE 的最新版本已经是 10.0 了,它被集 成在 Visual Sudio 2010 中。但是由于
学习的需要,我们还是要 用 vc++6.0,在网上的
搜索的一番,问题终于解决(X86 &; X64 通用哦)下面是详细步骤: 1、到微软官方下载 filetool.exe ( support.microsoft/kb/241396/en-us ); 2、运行 filetool.exe 释放出一个 c++工程文件 FileTool; 3、以管理员身份运行 VC++6.0 单击“文件/打开
工作空间“定 位生成的工程文件。按 F7 编译该工程生成 FileTool.dll; 4、把 FileTool.dll 复制到 vc 的安装路径 Microsoft Visual Studio\Common\MSDev98\AddIns 文件夹里。 单击 “工具” 菜单 中 “定制” ; 5、在 “定制” 对话框中, 单击 “附加项和宏文件” 选项卡。 6、单击 浏览 按钮并定位步骤 2 中生成 FileTool.dll 文件。 7、单击 确定 以保存设置。 8、这时会出现一个新的工具条,将他们拖至工具栏,和文件菜 单里。至此操作已经完成。
9、如果想删除原来的菜单和快捷键,请参看 support.microsoft/kb/241396/en-us (以下为该网页 的摘要)
Launching the Open File dialog box in Visual C++ using the keyboard shortcut key or from the File menu results in the following error: Access Violation (0xC0000005) in DEVSHL.DLL at 0x5003eaed. DevShl.Dll referenced memory at 0x0000000. The memory could not be read. The same error occurs when you select Add to Project from the Project menu and click Files. FileTool.exe is a sample that replaces the Open and Add to Project menu items in Visual C++ using the Developer Studio Object Model. The Developer Studio Object Model contains methods that both open files and add files to a project. The BuildProject object contains an AddFile method that adds files to a project. The Documents object contains an Open method that can open files into Developer Studio. These can be used in either a macro or Add-In.
The following file is available for download from the Microsoft Download Center: FileTool.exe The self-extracting FileTool.exe file contains the following files:
Commands.cpp Commands.h DSAddIn.cpp DSAddIn.h FileTool.cpp FileTool.def FileTool.dsp 5KB 1KB 5KB 2KB 5K 1KB 5KB
FileTool.dsw FileTool.h FileTool.odl FileTool.rc FileTool_i.c
1KB 1KB 2KB 5KB 2KB
FileToolTypes.h 7KB Resource.h StdAfx.cpp StdAfx.h FileTool.rc2 TBarLrge.bmp 1KB 1KB 3KB 1KB 2KB
TBarMedm.bmp 1KB
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base: 119591 How to Obtain Microsoft Support Files from Online Services Mic
rosoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.
Installing the Add-In
1. Run FileTool.Exe to extract the Visual C++ 6.0 project. 2. Build the project in Visual C++ in Release or Debug configuration. 3. In Visual C++, click Customize from the Tools menu. 4. In the Customize dialog box, click the Add-Ins and Macro Files tab. 5. Click the Browse button and locate the FileTool.dll file that was built in step 2. 6. Click OK to save the settings. A toolbar for the two commands appears. NOTE: Only the Open