Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 27th, 2005, 10:04 PM
Registered User
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default First C++ program will not not execute

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:
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:
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:
This file does not exist. Do you want to build it?
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.

Similar Threads
Thread Thread Starter Forum Replies Last Post
create and execute .net program on red hat linux vikas67k Linux 1 March 6th, 2010 05:39 AM
execute a servlet program sushant2002 Java Basics 2 July 13th, 2007 04:02 PM
how to execute Java program from Linux platform? sumandasgupta_2k Java Basics 1 April 6th, 2006 02:59 PM
Use VB to call Matlab to execute program fennsc VB How-To 0 March 14th, 2005 09:57 PM
conn.execute,command.execute or rs.open vinod_yadav1919 Crystal Reports 0 January 3rd, 2005 10:26 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.