LoveTW
LoveTW

Reputation: 3832

How to run execution file of Visual Studio 2010?

I write a C++ program. It can be run by visual studio in Debug mode, but when i click the .exe file in the path: C:\Users\user\Documents\Visual Studio 2010\Projects\NewProj\Debug, it will show "Fail to open the file". I don't know why. My program read some text from a .txt file, after doing some processes, some texts will be output to another file. Thanks:)

Upvotes: 0

Views: 1205

Answers (1)

Darren
Darren

Reputation: 70718

Try switching from debug mode to release mode. Then from the menu in Visual Studio: Clean solution and rebuild the solution. If you get the same error try looking through the event viewer to see a more detailed exception.

Upvotes: 1

Related Questions