Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > BOOK: Ivor Horton's Beginning Visual C++ 2010
|
BOOK: Ivor Horton's Beginning Visual C++ 2010
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2010 by Ivor Horton; ISBN: 9780470500880
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2010 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 January 7th, 2011, 04:34 PM
Registered User
 
Join Date: Jan 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 1 - Adding code files to an empty project

I am just starting this book and am in Chapter 1. I have created an empty project as the book shows and was able to type in code. What Ivor Horton does not tell you at this point is how to add one of the down loaded files to the project. I have attmepted to do this seemingly simple task, but nothing seems to do the trick. Here is what I have done:
After opening the project I Right Clicked in the Solution Explorer box. Then selected ADD NEW ITEM from the drop down menu. In the ADD NEW ITEM box I selected CODE under the installed templates and C++ file (.cpp) from the middle of the box. At the bottom of the Box I selected Browse located next to the location field and selected the folder containing my unzipped fle. In the name box I entered the name of my file.

The system then went to the Editor box with only a line number 1 displayed but nothing else.

Any help on this would be appreciated.
 
Old March 28th, 2012, 11:21 AM
Registered User
 
Join Date: Mar 2012
Posts: 12
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I would recommend that you enter the code examples manually. This will give you experience and confidence in programming in C++ and help you to think about the functionality you are creating, line by line.
 
Old June 5th, 2012, 03:32 AM
Authorized User
 
Join Date: May 2012
Posts: 66
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Randy207,

I strongly agree with the reply by gsallis. I hope you have continued your work through the book. The exercises in Chapter 1 are for the purpose of showing how to create projects of various types. The later chapters arre where you actually write code.

If for any reason you wish to use the code provided to see how it works (or other reasons) see this post I submitted a few minutes ago.

I can see where comparing the results of your code and the author's code may be of benefit from time to time if you take the time to play computer. By play computer I mean go through the code one line at a time and record the results on paper as you understand the results to be. Comparing your code to correctly written code can be a valuable tool.

Once again I echo gsallis. Type the code yourself. It will help you create good habits when composing code and help you understand why you are using every line in the program.

drpepper





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 1 - Adding code files to an empty project Randy207 BOOK: Ivor Horton's Beginning Visual C++ 2010 4 January 9th, 2011 06:13 PM
Chapter 22: Introduction to Project Management... Project Program integration chrisa BOOK: Professional Application Lifecycle Management with Visual Studio 2010 1 September 15th, 2010 03:28 PM
Chapter 3 - Extra Credit Code [Adding To Database] lcoon BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 1 November 15th, 2009 03:00 AM
Code Error - Chapter 1 - Adding a Property cbesh2 BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 0 November 7th, 2008 11:29 PM





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