2017-04-02 17 views
-1

Visual Studio 10でコードをビルドするとエラーが発生し、どのように解決できるかわかりません。これは私が持っているエラーメッセージです:Visual Studio 2017でAcces deniedエラーが発生しました

1>------ Rebuild All started: Project: Win32Project34, Configuration: Debug Win32 ------ 
1>C:\Program Files\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppClean.targets(76,5): warning : Access to the path 'c:\users\recht\documents\visual studio 2017\projects\win32project34\debug\win32project34.exe' is denied. 
1>einde5.cpp 
1>c:\users\recht\desktop\einde5.cpp(37): warning C4302: 'type cast': truncation from 'LPWSTR' to 'WORD' 
1>c:\users\recht\desktop\einde5.cpp(42): warning C4302: 'type cast': truncation from 'LPWSTR' to 'WORD' 
1>LINK : fatal error LNK1104: cannot open file 'c:\users\recht\documents\visual studio 2017\Projects\Win32Project34\Debug\Win32Project34.exe' 
1>Done building project "Win32Project34.vcxproj" -- FAILED. 
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== 

誰かが問題の内容を知っていますか、どのように解決できますか?

+3

Win32Project34.exeの実行中のコピー? – KonstantinL

+0

どのバージョンのWindowsがありますか? – niceman

+0

これが解決された場合は、下記の解決策を追加してください。ここでは[解決済み]タイトルハックは使用しません。 – halfer

答えて

0

Visual Studioを管理者として実行してください(右クリックし、プログラムリンクの管理者として実行してください)。

0

私はあなたのアプリケーション

c:\users\recht\documents\visual studio 2017\projects\win32project34\debug\win32project34.exe 

がまだ実行されていると仮定します。

使用タスクマネージャを終了するか、再リンクしようとする前に、それがなくなっていることを確認するために、CMDウィンドウで

taskkill /f /IM win32project34.exe 

を呼び出します。

関連する問題