Book description
Popular author Ivor Horton uses his trademark approachable writing style to provide novice programmers with the basic tools as they learn Visual C++ 2005
Readers will learn how to program in C++ using Visual C++ 2005-without any previous knowledge of C++
More than 35 percent new and updated material covers the new release of Visual C++, and exercises and solutions help readers along the way
Demonstrates the significant new features of Visual C++ 2005, providing improved flexibility in developing Microsoft applications in C++
Table of contents
- Copyright
- Credits
- About the Author
- Acknowledgments
- Introduction
-
1. Programming with Visual C++ 2005
- 1.1. The .NET Framework
- 1.2. The Common Language Runtime (CLR)
- 1.3. Writing C++ Applications
- 1.4. Learning Windows Programming
- 1.5. What Is the Integrated Development Environment?
- 1.6. Using the IDE
- 1.7. Summary
-
2. Data, Variables, and Calculations
- 2.1. The Structure of a C++ Program
- 2.2. Defining Variables
- 2.3. Fundamental Data Types
- 2.4. Basic Input/Output Operations
- 2.5. Calculating in C++
- 2.6. Variable Types and Casting
- 2.7. Understanding Storage Duration and Scope
- 2.8. Namespaces
- 2.9. C++/CLI Programming
- 2.10. Summary
- 2.11. Exercises
-
3. Decisions and Loops
- 3.1. Comparing Values
- 3.2. Repeating a Block of Statements
- 3.3. C++/CLI Programming
- 3.4. Summary
- 3.5. Exercises
-
4. Arrays, Strings, and Pointers
- 4.1. Hndling Multiple Data Values of the Same Type
- 4.2. Indirect Data Access
- 4.3. Dynamic Memory Allocation
- 4.4. Using References
- 4.5. C++/CLI Programming
- 4.6. Summary
- 4.7. Exercises
-
5. Introducing Structure into Your Programs
- 5.1. Understanding Functions
- 5.2. Passing Arguments to a Function
- 5.3. Returning Values from a Function
- 5.4. Recursive Function Calls
- 5.5. C++/CLI Programming
- 5.6. Summary
- 5.7. Exercises
-
6. More about Program Structure
- 6.1. Pointers to Functions
- 6.2. Initializing Function Parameters
- 6.3. Exceptions
- 6.4. Handling Memory Allocation Errors
- 6.5. Function Overloading
- 6.6. Function Templates
- 6.7. An Example Using Functions
- 6.8. C++/CLI Programming
- 6.9. Summary
- 6.10. Exercises
-
7. Defining Your Own Data Types
- 7.1. The struct in C++
- 7.2. Data Types, Objects, Classes and Instances
- 7.3. Understanding Classes
- 7.4. Class Constructors
- 7.5. Private Members of a Class
- 7.6. The Pointer this
- 7.7. const Objects of a Class
- 7.8. Arrays of Objects of a Class
- 7.9. Static Members of a Class
- 7.10. Pointers and References to Class Objects
- 7.11. C++/CLI Programming
- 7.12. Summary
- 7.13. Exercises
-
8. More on Classes
- 8.1. Class Destructors
- 8.2. Implementing a Copy Constructor
- 8.3. Sharing Memory Between Variables
- 8.4. Operator Overloading
- 8.5. Class Templates
- 8.6. Using Classes
- 8.7. Organizing Your Program Code
- 8.8. C++/CLI Programming
- 8.9. Summary
- 8.10. Exercises
-
9. Class Inheritance and Virtual Functions
- 9.1. Basic Ideas of OOP
- 9.2. Inheritance in Classes
- 9.3. Access Control Under Inheritance
- 9.4. The Copy Constructor in a Derived Class
- 9.5. Class Members as Friends
- 9.6. Virtual Functions
- 9.7. Casting Between Class Types
- 9.8. Nested Classes
- 9.9. C++/CLI Programming
- 9.10. Summary
- 9.11. Exercises
- 10. Debugging Techniques
-
11. Windows Programming Concepts
- 11.1. Windows Programming Basics
-
11.2. The Structure of a Windows Program
- 11.2.1. The WinMain() Function
- 11.2.2. Message Processing Functions
- 11.2.3. A Simple Windows Program
- 11.3. Windows Program Organization
- 11.4. The Microsoft Foundation Classes
- 11.5. Using Windows Forms
- 11.6. Summary
- 12. Windows Programming with the Microsoft Foundation Classes
-
13. Working with Menus and Toolbars
- 13.1. Communicating with Windows
- 13.2. Extending the Sketcher Program
- 13.3. Elements of a Menu
- 13.4. Adding Handlers for Menu Messages
- 13.5. Adding Toolbar Buttons
- 13.6. Summary
- 13.7. Exercises
-
14. Drawing in a Window
- 14.1. Basics of Drawing in a Window
- 14.2. The Drawing Mechanism in Visual C++
- 14.3. Drawing Graphics in Practice
-
14.4. Programming the Mouse
- 14.4.1. Messages from the Mouse
- 14.4.2. Mouse Message Handlers
-
14.4.3. Drawing Using the Mouse
- 14.4.3.1. Getting the Client Area Redrawn
- 14.4.3.2. Defining Classes for Elements
- 14.4.3.3. The CElement Class
- 14.4.3.4. The CLine Class
- 14.4.3.5. Calculating the Enclosing Rectangle for a Line
- 14.4.3.6. The CRectangle Class
- 14.4.3.7. The CCircle Class
- 14.4.3.8. The CCurve Class
- 14.4.3.9. Completing the Mouse Message Handlers
- 14.5. Exercising Sketcher
- 14.6. Summary
- 14.7. Exercises
-
15. Creating the Document and Improving the View
- 15.1. What Are Collection Classes?
- 15.2. Using the CList Template Class
- 15.3. Creating the Document
- 15.4. Improving the View
- 15.5. Deleting and Moving Shapes
- 15.6. Implementing a Context Menu
- 15.7. Dealing with Masked Elements
- 15.8. Summary
- 15.9. Exercises
-
16. Working with Dialogs and Controls
- 16.1. Understanding Dialogs
- 16.2. Understanding Controls
- 16.3. Creating a Dialog Resource
- 16.4. Programming for a Dialog
- 16.5. Supporting the Dialog Controls
- 16.6. Completing Dialog Operations
- 16.7. Using a Spin Button Control
- 16.8. Using the Scale Factor
- 16.9. Working with Status Bars
- 16.10. Using a List Box
- 16.11. Using an Edit Box Control
- 16.12. Summary
- 16.13. Exercises
-
17. Storing and Printing Documents
- 17.1. Understanding Serialization
- 17.2. Serializing a Document
- 17.3. Applying Serialization
- 17.4. Exercising Serialization
- 17.5. Moving Text
- 17.6. Printing a Document
- 17.7. Implementing Multipage Printing
- 17.8. Summary
- 17.9. Exercises
-
18. Writing Your Own DLLs
- 18.1. Understanding DLLs
- 18.2. Deciding What to Put in a DLL
- 18.3. Writing DLLs
- 18.4. Summary
- 18.5. Exercises
-
19. Connecting to Data Sources
- 19.1. Database Basics
- 19.2. A Little SQL
- 19.3. Database Support in MFC
- 19.4. Creating a Database Application
- 19.5. Sorting a Recordset
- 19.6. Using a Second Recordset Object
- 19.7. Viewing Customer Details
- 19.8. Summary
- 19.9. Exercises
-
20. Updating Data Sources
- 20.1. Update Operations
- 20.2. A Simple Update Example
- 20.3. Managing the Update Process
-
20.4. Adding Rows to a Table
- 20.4.1. The Order Entry Process
- 20.4.2. Creating the Resources
- 20.4.3. Creating the Recordsets
- 20.4.4. Creating the Recordset Views
- 20.4.5. Adding Controls to the Dialog Resources
- 20.4.6. Implementing Dialog Switching
- 20.4.7. Creating an Order ID
- 20.4.8. Storing the Order Data
- 20.4.9. Selecting Products for an Order
- 20.4.10. Adding a New Order
- 20.5. Summary
- 20.6. Exercises
-
21. Applications Using Windows Forms
- 21.1. Understanding Windows Forms
- 21.2. Understanding Windows Forms Applications
-
21.3. Customizing the Application GUI
- 21.3.1. Adding Controls to a Form
- 21.3.2. Adding a Tab Control
- 21.3.3. Using GroupBox Controls
- 21.3.4. Using Button Controls
- 21.3.5. Using the WebBrowser Control
- 21.3.6. Operation of the Winning Application
- 21.3.7. Adding a Context Menu
- 21.3.8. Creating Event Handlers
- 21.3.9. Handling Events for the Limits Menu
- 21.3.10. Creating a Dialog Box
- 21.3.11. Using the Dialog Box
- 21.3.12. Adding the Second Dialog
- 21.3.13. Implementing the Help | About Menu Item
- 21.3.14. Handling a Button Click
- 21.3.15. Responding to the Context Menu
- 21.4. Summary
- 21.5. Exercises
-
22. Accessing Data Sources in a Windows Forms Application
- 22.1. Working with Data Sources
- 22.2. Accessing and Displaying Data
- 22.3. Using a DataGridView Control
- 22.4. Using a DataGridView Control in Unbound Mode
- 22.5. Customizing a DataGridView Control
- 22.6. Using Bound Mode
- 22.7. The BindingSource Component
- 22.8. Using the BindingNavigator Control
- 22.9. Binding to Individual Controls
- 22.10. Working with Multiple Tables
- 22.11. Summary
- 22.12. Exercises
- A. C++ Keywords
- B. ASCII Codes
Product information
- Title: Ivor Horton's Beginning Visual C++® 2005
- Author(s):
- Release date: February 2006
- Publisher(s): Wrox
- ISBN: 9780764571978
You might also like
book
Microsoft® Visual C++® .NET 2003 Kick Start
Microsoft Visual C++ .NET 2003 Kick Start is targeted toward developers interested in making the jump …
book
Ivor Horton's Beginning Visual C++® 2010
The leading author of programming tutorials for beginners introduces you to Visual C++ 2010 Ivor Horton …
book
Windows® CE 3.0 Application Programming
Windows CE 3.0 programming for Pocket PC, handheld PC, and embedded devices Enterprise computing including COM, …
book
The Old New Thing: Practical Development Throughout the Evolution of Windows
"Raymond Chen is the original raconteur of Windows." --Scott Hanselman, ComputerZen.com "Raymond has been at Microsoft …