Visual Studio 2005 宏无法运行

发布于 2024-07-30 07:39:29 字数 152 浏览 2 评论 0原文

我正在尝试运行将调试器附加到 calc.exe 的 Visual Studio 2005 示例宏。 当我运行它们时,它和任何其他宏似乎都没有做任何事情。 Calc.exe 正在运行。 选中“工具->选项->加载项/宏安全性->允许宏运行”。 错误列表显示没有错误。

I'm trying to run the Visual Studio 2005 sample macro that attaches the debugger to calc.exe. Neither it nor any other macro seem to do anything when I run them. Calc.exe is running. "Tools->Options->Add-in/Macros Security->Allow macros to run" is checked. The error list shows no errors.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

关于从前 2024-08-06 07:39:30

我也遇到了这个问题(但是在 Visual studio 2010 中)。

经过多次尝试修复。 我发现这是一个愚蠢的问题。

我在另一个模块中有另一个未编译的宏(我在行末尾有分号)。

尽管我在不同的模块中运行宏,但这并不重要。

如果您遇到此问题,您可以检查的一个简单方法是在错误列表中查找代码中的任何错误。 出于习惯,很容易在行尾添加分号。

在此处输入图像描述

I had this problem too (but in Visual studio 2010).

After multiple attempts to fix it. I discovered it was a stupid problem.

I had another macro in another module that didn't compile (I had semi-colons at the end of lines).

Even though I was running a macro in a different module it didn't seam to matter.

If you are having this problem an easy thing you can check is looking in the error list for any errors in your code. It's very easy to put semi-colons at the end of your lines out of habit.

enter image description here

少年亿悲伤 2024-08-06 07:39:30

听起来您的 Visual Studio 2005 实例不稳定,或者您的 Visual Studio 2005 安装已损坏。 如果重新启动 VS2005 不起作用,请运行 VS2005 安装程序并选择修复。 希望这可以帮助。

问候,

塞巴斯蒂安

Sounds like your Visual Studio 2005 instance is flaky, or that your Visual Studio 2005 installation is broken. If restarting VS2005 doesn't help, run the VS2005 setup and choose repair. Hope this helps.

Regards,

Sebastiaan

吻泪 2024-08-06 07:39:30

我也遇到了同样的问题。 VS2005中的宏工作正常,然后有一天突然停止了。 我检查了权限、宏是否已启用等。我运行了 VS2005 安装程序并修复了我的安装,但这些都没有修复它。 最后我卸载了上一个更新周期中出现的所有 Windows 更新。 这解决了我的问题。 我一次卸载了一堆,所以我不知道到底是哪个更新导致了问题,但我知道它至少是其中之一:

KB2916036
KB2912390
KB2911501
KB2909921
KB2909210
KB2901112
KB2898857
KB2862973
KB2843630,

因为我卸载了所有这些,然后宏再次开始工作。 所有这些 Windows 更新都发生在 2014 年 2 月 13 日。

希望这对其他人有帮助。
马克

·P.S. 我后来发现它是 KB2898857,如果您编辑一些配置文件,则可以保留它的安装,如下所述:

http://visualstudioextensions.vlasovstudio.com/2014/02/13/visual-studio-2010-macros-停止工作-after-february-2014-windows-update/#Update

I had this same problem just happen to me. Macros in VS2005 were working fine, and then suddenly stopped one day. I checked permissions, that macros were enabled, etc. I ran the VS2005 setup program and repaired my installation, and none of this fixed it. Finally I uninstalled all the Windows updates that came in the last update cycle. This fixed the problem for me. I uninstalled a bunch at once, so I don't know exactly which update caused the problem, but I know it was at least one of these:

KB2916036
KB2912390
KB2911501
KB2909921
KB2909210
KB2901112
KB2898857
KB2862973
KB2843630

as I uninstalled all of these, and then the macros started working again. All of these Windows updates happened for me on Feb 13, 2014.

Hope this helps someone else.
Mark

P.S. I later discovered it was KB2898857 and you can leave it installed if you edit a few config files, as described here:

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文