当前位置:   article > 正文

如何在 Windows 10 中设置Visual Studio 2017添加或删除“以管理员身份运行”_vs 取消管理员执行权限

vs 取消管理员执行权限

最近在使用Visual Studio 2017对中望CAD进行二次开发时,当使用"Marshal.GetActiveObject"函数连接对象时,总是提示下图中的报错:

Google了一下发现了一个帖子中提到:

If you have UAC on, and your application requests administrator privilege to run, then it can not access the registry of HKEY_CURRENT_USER, and Inventor has some registry values in HKEY_CURRENT_USER for the CreateInstance to work, so your application would fail in this case, and if you run it as standard user privilege it would work. So I suggest in this case you just run your application in standard user privilege.

帖子链接:

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/809336
推荐阅读
相关标签
  

闽ICP备14008679号