visual studio 2008(VS2008)中不能运行自定义宏的解决办法

来源:互联网 发布:心动网络官网用户中心 编辑:程序博客网 时间:2024/05/17 02:33

之前在WinXp上装了VS2008的英文版,可以正常运行自已写的宏,可以为文件和函数添加注释。

后来换了一台电脑,装的是Win7和VS2008的简体中文版,发现宏运行不了啦。


之前用百度找了很久,一直没有找到答案。

后来换了一个搜索引擎,终于解决了。


解决过程如下:

1,在搜狗(www.sogou.com)中搜索“VS2008 Macro”,找到:

VS 2008 macros disabled - Stack Overflow

http://stackoverflow.com/questions/21944116/vs-2008-macros-disabled

文中提到:

This is a known issue caused by a recent Windows update. See Visual Studio 2010 Macros Stop Working after February 2014 Windows Update for solutions how to fix it.


2,进入链接:

http://visualstudioextensions.vlasovstudio.com/2014/02/13/visual-studio-2010-macros-stop-working-after-february-2014-windows-update/

使用更改config文件的办法,但保存时却提示那三个config文件正在使用中,不能覆盖保存。

找到后面的方法:

Update (October 25): Microsoft released an update for Microsoft Visual Studio 2008 Service Pack 1 that fixes the issue of Visual Studio Macros stop working after installing MS14-009: Download KB2938806. And similar update for Microsoft Visual Studio 2005 Service Pack 1: Download KB2938803.


3,进入链接:

http://www.microsoft.com/en-us/download/details.aspx?id=42540

更改为中文,下载补丁:

KB2938806

安装后,问题解决。

0 0
原创粉丝点击