Subject: First C++ program will not not execute
Posted By: dlmattice Post Date: 4/27/2005 10:04:36 PM
Hello.
I am using MS Visual C++6 Standard Edition, and MSDN 2000 on Windows XP.
I’m working on the first example in the first chapter of Ivor Horton's 98 reprint, Beginning VC++6.
The program will not execute.
The following is the process that I have followed.
Creating a new project:
File-New…
In Project tab, I’ve selected, Win32 Console Application. Then entered the project name, and directed the location to my flash drive, k:\TrialRun, and clicked OK.
Next window selection is, Empty Project. Then finish, and OK.
Entering The first program:
File-New…
In file tab, I’ve selected C++ Source File, and unchecked the add new project selection. Clicked OK.
I write the program into the text window, and save it as TrialRun.cpp1.
The book says to use extension cpp, but it doesn’t work. The system shows cpp1, which does.
Then  I add a source file to the project, by right clicking and selecting, insert file into project.
I press F7, and it is built without flaw.  
Everything goes smooth, until executing the program.
Result is:
K:\TrialRun\Debug\TrialRun.exe
This file does not exist. Do you want to build it?
Yes
Result: Cannot execute program.
I have also used  the default  location on the local hard drive for this project with the same result.
What am I doing wrong?
Thank you.
Dave

Go to topic 29839

Return to index page 566
Return to index page 565
Return to index page 564
Return to index page 563
Return to index page 562
Return to index page 561
Return to index page 560
Return to index page 559
Return to index page 558
Return to index page 557