Problem with first C++ Program

Hello, I recently took it upon myself to learn the C++ programming language. As with most newcommers to programming they begin with the "Hello World!" program and that is exactly what I am having trouble with.

I inserted the correct code as there are no build errors, however, I do experience a problem when trying to run the program. I hit CTRL + F5 to run the program and I get the following error:

Unable to start program 'c:\documents and settings\owner\my documents\visual studio 2005\projects\hello3\debug\hello3.exe'.

The system cannot find the file specified.

I'm not sure what the problem is and don't know how to fix it. Any assistance would be greatly appreciated. Thanks!

[790 byte] By [TheDavid] at [2008-1-4]
# 1
Can you copy/paste your build log?
NishantSivakumar at 2007-9-26 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2

Sure, here it is

<html>

<head>

<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-16">

</head>

<body>

<pre>

<table width=100% bgcolor=#CFCFE5><tr> <td> <font face=arial size=+3>

Build Log

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>

<h3>Rebuild started: Project: Hello3, Configuration: Debug|Win32</h3>

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Command Lines

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Hello3 - up-to-date

</pre></table><table width=100% height=20 bgcolor=#CFCFE5><tr><td><font face=arial size=+2>

</font></table></body></html>

TheDavid at 2007-9-26 > top of Msdn Tech,Visual C++,Visual C++ General...
# 3

That's the build log file when you tried to build an already built program. That's not helpful. Nish meant to copy/paste from the output window, not from the HTML build log file.

Look into the Debug folder and check whether you have the executable there.

MariusBancila at 2007-9-26 > top of Msdn Tech,Visual C++,Visual C++ General...
# 4

Is it working now? If not, then please verify that the file exists; does the file:

c:\documents and settings\owner\my documents\visual studio 2005\projects\hello3\debug\hello3.exe

exist?

SimpleSamples at 2007-9-26 > top of Msdn Tech,Visual C++,Visual C++ General...