VC++中无法open的解决方案

VC++无法open的问题很普遍,主要原因好像是和微软的office之间存在冲突,微软也给出了具体的解决方案,这里主要说一下微软是如何解决的。

微软主要采用了替换的方法来进行替换,用FileTool.exe来替换VC++中的openadd to projects,参见http://support.microsoft.com/kb/241396/en-us

1.      下载FileTool.exe,解压。

2.      打开VC++,点击File-open workspace,然后选择解压后的FileTool中的FileTool.dsw

3.      然后点击Build-build FileTool.dll,此时会在FileTool文件夹的debug中生成FileTool.dll,将它复制到VC++的安装目录下,一般是C:\Program Files\Microsoft Visual Studio

4.      点击Tools中的自定义选项(Customize),然后进入到Add-ins and Macro Files.

5.      点击Browse选项选择之前复制到VC++安装目录下的FileTool.dll,将其添加进来。

这里值得注意的是在添加过程中由于VC++的运行有可能不是以管理员的身份来运行的,因此可能造成添加失败。网上有个哥们采用的是用regsev32命令来注册的。

我在注册的时候出现了下面这样的问题:

检查该错误代码发现是没有采用管理员的身份来运行,因此重新以管理员的身份来运行VC++,具体方法可以直接右键VC图标,然后选择以管理员的身份运行,这样只是这一次运行采用管理员身份,若想每次运行都采用管理员的身份,那么可以右键属性VC的图标,然后选择以管理员的身份运行,具体参见下图。

以管理员的身份来运行的话,可以直接添加成功,不需要用命令提示符。

6.       添加完后会出现图标,将其关闭即可。

 

上面所有的部分,微软网站上称为install Add-in

 

接下来将openadd图标替换掉即可。

Removing Shortcut Keys

After you load the add-in, you can remove the shortcut keys for the menu items that stop Visual C++ and assign them to the two add-in commands by following the steps below:

1.       From the Visual C++Tools menu, click Customize.

2.       In theCustomize dialog box, click the Keyboard tab.

3.       From theCategory box select File.

4.       In the Commands window, selectFileOpen.

5.       In theCurrent keys window, select the CTRL+O entry and then click Remove.

6.       From theCategory box select Project.

7.       In the Commands window, selectInsertFilesIntoProject. If there is a shortcut associated with it, follow step 5 to remove it. By default there is no shortcut key for this item.

注意这里InsertFilesIntoProject默认的就是没有快捷键的,所以最好自己也不要加了,当时我加了快捷键,结果最后重新打开VC的时候还是不行。

8.       From theCategory box select Add-Ins.

9.       The two add-in commandsAddFileToProject and OpenFile appear in the Commands window.

10.    SelectOpenFile then put the cursor in the Press New Shortcut Key box, press the shortcut key or key combination that you want, and clickAssign.

11.    Repeat the above step for the other command. The assigned shortcut keys for the two commands appear in the Current Keys window.

You may also wish to remove the menu commands and insert theAddIn commands in their place. To insert the new AddIn commands in the MenuBar, use the following steps:

1.       From the Visual C++Tools menu, click Customize.

2.       Click theFile menu and then drag the Open command off of theFile popup and release it.

3.       Click theProject menu, click Add To Project and then drag theFiles command off of the popup and release it.

4.       In theCustomize dialog box, select the Commands tab.

5.       SelectAdd-ins from the Category list box.

6.       Drag theOpenFile command to the File menu and drop it in the space vacated by theOpen command.

7.       Drag theAddFileToProject command to the Add To Project item on theProject menu and drop it in the space vacated by the Files command.

经过上面的这些步骤后,最后VCopenadd都被替换,并且图标也被替换,替换后的open图标为:

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值