Unable to start program, access
2021-11-02 本文已影响0人
XBruce
I tried to run C++ code on VS 2017, but I am getting this message. I tried to find solutions online on git-hub, MSVS forums, and here, but the proposed solutions didn't help me to overcome this problem. I would like some help to solve this problem.

Solution
You are trying to "execute" the "ALL_BUILD" folder rather than your program; a folder can't be executed.
Check your program's project properties and ensure that the "Command" you want to debug actually points to the compiled 'exe' file or $(TargetPath) and ensure that you have the correct start-up project selected.