繁体   English   中英

如何解决Visual Studio 2012和VS Community 2015中的“拒绝访问”错误?

[英]How can I fix 'Access denied' error in visual studio 2012 and VS community 2015?

我希望学习C++编程语言。 我有Visual Studio 2012VS community 2015 我从VS 2012开始编写标准的“ hello world”程序。

#include <iostream> 

using namespace std;

int main() 
{
    cout << "Hello world!" << endl;
    cout << "I'm learning C++!" << endl;
    cout << "This is fun :D" << endl;

    cin.get();
}

当我继续调试时,我收到一个错误:

"Unable to start program (*program name & location*) Access is denied" 我再次尝试下载VS 2015版本,并收到相同的错误。

我一直在寻找解决方案达数小时之久,并且很多帖子都提到设置了错误的权限-如果这是问题所在,该如何解决?

有人可以帮忙吗?

非常感谢您的回答。

  • 打开Windows服务:-应用经验

  • 计算机(右键单击)->管理->服务和应用程序->服务->启用应用程序体验

希望这可以解决您的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM