解决VC++ 6.0打开文件崩溃
2015-10-11 23:10
411 查看
Microsoft Visual C++ 6.0 Enterprise Edition
环境: OS Windows 7 Home Basic SP1 x64 ThinkPad OEM
使用打开(O)菜单,或快捷键Ctrl+O时崩溃
同一套件中VB等组件没有问题
搜索到微软官方给出的解决方案:
Q241396
SUMMARY
Launching the
Open File dialog box in Visual C++ using the keyboard shortcut key or from theFile
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 selectAdd to Project from the
Project menu and clickFiles.
FileTool.exe is a sample that replaces the Open andAdd 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. TheBuildProject object contains an
AddFile method that adds files to a project. The
Documents object contains anOpen method that can open files into Developer Studio. These can be used in either a macro or Add-In.
提供了补丁下载
Installing the Add-In
Run FileTool.Exe to extract the Visual C++ 6.0 project.
Build the project in Visual C++ in Release or Debug configuration.
In Visual C++, click Customize from the Tools menu.
In the Customize dialog box, click the Add-Ins and Macro Files tab.
Click the Browse button and locate the FileTool.dll file that was built in step 2.
Click OK to save the settings.
A toolbar for the two commands appears.
NOTE: Only the Open command works in Visual C++ 5.0. The AddFile method was added with the Visual Studio 6.0 release.
简要翻译如下:
1、下载上述补丁,打开解压出的FileTool.dsw,编译生成Filetool.dll,将此dll放至安装位置\Microsoft Visual Studio\Common\MSDev98\AddIns。(可能需要使用Regsvr32手动注册)
2、工具→自定义
![](https://oscdn.geek-share.com/Uploads/Images/Content/202011/29/abf712e187a54bdd1fef4359a1b5183c)
3、在Add-ins选项卡中将FileTool.DSAddIn.1勾选即可
![](https://oscdn.geek-share.com/Uploads/Images/Content/202011/29/8988867b210c94aa85938664d7473645)
4、使用A、O按钮来实现添加或打开文件。
![](https://oscdn.geek-share.com/Uploads/Images/Content/202011/29/19ee83a40fd88122167d51818b7390d8)
Reference
微软知识库
环境: OS Windows 7 Home Basic SP1 x64 ThinkPad OEM
使用打开(O)菜单,或快捷键Ctrl+O时崩溃
同一套件中VB等组件没有问题
搜索到微软官方给出的解决方案:
Q241396
SUMMARY
Launching the
Open File dialog box in Visual C++ using the keyboard shortcut key or from theFile
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 selectAdd to Project from the
Project menu and clickFiles.
FileTool.exe is a sample that replaces the Open andAdd 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. TheBuildProject object contains an
AddFile method that adds files to a project. The
Documents object contains anOpen method that can open files into Developer Studio. These can be used in either a macro or Add-In.
提供了补丁下载
<a id="kb-link-1" href="http://download.microsoft.com/download/vc60ent/s1/6.0/w9xnt4/en-us/filetool.exe">FileTool.exe</a>
Installing the Add-In
Run FileTool.Exe to extract the Visual C++ 6.0 project.
Build the project in Visual C++ in Release or Debug configuration.
In Visual C++, click Customize from the Tools menu.
In the Customize dialog box, click the Add-Ins and Macro Files tab.
Click the Browse button and locate the FileTool.dll file that was built in step 2.
Click OK to save the settings.
A toolbar for the two commands appears.
NOTE: Only the Open command works in Visual C++ 5.0. The AddFile method was added with the Visual Studio 6.0 release.
简要翻译如下:
1、下载上述补丁,打开解压出的FileTool.dsw,编译生成Filetool.dll,将此dll放至安装位置\Microsoft Visual Studio\Common\MSDev98\AddIns。(可能需要使用Regsvr32手动注册)
2、工具→自定义
3、在Add-ins选项卡中将FileTool.DSAddIn.1勾选即可
4、使用A、O按钮来实现添加或打开文件。
Reference
微软知识库
相关文章推荐
- C++中的多态和派生继承
- 从c到c++<三>
- STL之简单空间适配器实现
- 欢迎使用CSDN-markdown编辑器
- C语言全局变量初始化、数据类型长度
- C++之顺序容器
- C++primer学习:智能指针与动态内存(1)
- 在C++/MFC中利用CMarkup类对XML进行操作
- poco c++ 框架: Util 读取配置文件
- 项目35.4 贪财的富翁
- 项目35.3 Bessel函数
- leetcode笔记:Isomorphic Strings
- C++标准模板库------容器
- C语言中的变量
- C++ string流介绍
- C/C++基础总结(一)
- C++Primer第四章
- C语言中参数执行顺序及a++与++a实现的区别
- 关于C++中的友元函数的总结
- C++中关于public、protect、private的访问权限控制