Click here to Skip to main content
15,909,205 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hey,
I get started scripting C++ with my book, and i want make some exercises and when i click F5 or Debug The progrem return me this error:
Unable to start program 'c:\users\Dan\documents\visual studio 2010\Projects\firstproject\Debug\testings.exe'.
The system cannot find the file specified.
How i fix that?
I scripting with C# and it's never happend to me...

Picture: http://sizmedia.com/my.php?i=njenjmmzxmji.png[^]
Posted
Updated 4-Dec-13 6:33am
v4
Comments
Sergey Alexandrovich Kryukov 4-Dec-13 10:28am    
System cannot find it. How about you?
Off-topic. Before getting to programming, you need to master using your system as a regular user and at least know where your files are and how to start applications...
—SA
Sayan Bera 4-Dec-13 10:29am    
check your project properties, I guess you are not building an application(.exe).
Sergey Alexandrovich Kryukov 4-Dec-13 10:31am    
I would better say: "Create some empty project from scratch and make sure it compiles and run. Start from this point. To be able to retrace your steps, use some Revision Control System".
—SA
Stefan_Lang 5-Dec-13 2:17am    
Indeed, this should always be the first step when using a (new) IDE, or a (new) programming language. What happened to "Hello World" lately? Seems like more and more aspiring programmers don't bother with it and then wonder why they're stuck...
Sergey Alexandrovich Kryukov 5-Dec-13 2:21am    
They don't have time for "Hello word". Apparently, from the very first steps, they are too busy with translation between natural languages or face recognition. :-)
—SA

1 solution

The first thing I notice from a quick look at the image is that you don't have a Build menu - which is probably related to your problem, as until the solution has been built you will not have a file to execute.

My guess is that you have created this with the wrong project type and the type you have selected does not have any compilation options.

So, close that, and open a new VS window.
From the menu, select "File" and then "New...New Project"
Select one of the Console applications (I don't use the Express version of VS, so I don't know exactly which ones you have) give it a name, and press OK.

Now you should have a Build menu, and pressing F5 should build the project and then run it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900