簡體   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