重装系统、VS6以后,原来可以用的一段宏不能用了,出错提示窗口如下:---------------------------
Microsoft Visual C++
---------------------------
***.DSMThis macro file contained the following error and will be unloaded:Line 92: ActiveX 部件不能创建对象: 'Scripting.FileSystemObject'Would you like to edit the file?
---------------------------
是(Y)   否(N)   
---------------------------印象中以前也出现过类似东西,不记得怎么解决的了~~

解决方案 »

  1.   

    http://support.microsoft.com/default.aspx?scid=kb;en-us;168081
      

  2.   

    查找scrrun.dll文件,重新注册。
      regsvr32 scrrun.dll
      

  3.   

    to wildmen():
        试过,提示注册成功,但是没解决问题,不知道为什么。
    to ldsjlzy(小李):
        我无语了。我问的是一个ActiveX调用失败的问题,你给的帖子是修正补丁的描述。“FIX: Wrong Column Jumped to for Macro Syntax Error”,我英语不好,但我看了几遍还是认为说的是“修正:宏语法错误时错误的列跳转”。我从头到尾看过几遍了,除了Macro和Error没找出来一个字和我的问题有关。
      

  4.   

    解决了,原因是没有安装SP6。看到ldsjlzy发的补丁想起来以前是装过sp6的。但是还是请ldsjlzy仔细检查一下连接。
      

  5.   

    真服了你,抛开问题不说,引用原文
    SYMPTOMS
    When you attempt to load a macro that contains a syntax error in Developer Studio, an error message similar to the following appears: 
    c:\program files\devstudio\sharedide\macros\mymacro.dsm This macro file contained the following error and will be unloaded Line 6: Expected ')' if (ActiveDocument.selection.FindText"CWnd") then Would you like to edit the file? 
    If you choose to edit the file, the cursor is not placed in the column where the error occurred. However, the cursor is placed on the correct row. 就是说如果你加载了包含了语法错误的宏,并选择edit光标不会跳到错误所在的列,而是会跳到了正确的列,这是微软的bug,这句话至少不会让你对盯着那行正确的行去想吧。
      

  6.   

    1、我没有打算看宏的代码,我只想解决一个已知的ActiveX方面的错误-_-#
    2、这个说的是语法错误引起的,我的宏没有语法错误(运行时的错误,不是语法错误)。
    3、However, the cursor is placed on the correct row. 即使抛开前面两条,我也不会因此找错行。
    4、我第一次看到你的连接就仔细的将原文读了几遍,因为毕竟英语不很好。我觉得你没有必要因此得出“浮躁”的结论。
      

  7.   

    算了,也许是误会,可能你确实没读懂原文意思,原文说了这是vc6及以下的的bug,但在.net己经修复。文中提到的解决方案只是用vc6提供的自动化接口宏支持来修复vc6的这个bug.没让你去改宏,也不是说宏是错的。我想你即然安装sp6解决了这问题正验证了上面的说法。有时候英语阅读能力能决定了对一篇文章的理解程度.