64位操作系统宏不能使用解决方案

找到以下配置文件

"C:\Program Files (x86)\Common Files\Microsoft Shared\VSA\9.0\VsaEnv\vsmsvr10.exe.config"

"C:\Program Files (x86)\Common Files\Microsoft Shared\VSA\9.0\VsaEnv\vsaenv10.exe.config"

"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config"

在配置文件的  <runtime> 后面添加<AllowDComReflection enabled="true"/>即可(重启VS2010):

例如:

<configuration>    

<runtime>        

<AllowDComReflection enabled="true"/>

 

然后宏就可以用了!!!

posted @ 2014-09-17 10:48  X.Y  阅读(649)  评论(0编辑  收藏  举报