Home > Store

Sams Teach Yourself Visual C++.NET in 21 Days, 2nd Edition

Register your product to gain access to bonus material or receive a coupon.

Sams Teach Yourself Visual C++.NET in 21 Days, 2nd Edition


  • Sorry, this book is no longer in print.
Not for Sale


  • Copyright 2002
  • Dimensions: 7-3/8" x 9-1/8"
  • Pages: 800
  • Edition: 2nd
  • Book
  • ISBN-10: 0-672-32197-1
  • ISBN-13: 978-0-672-32197-9

Sams Teach Yourself Visual C++.NET in 21 Days, 2nd Edition is a time- saving guide walking you through Visual C++ tools and wizards for building applications and places VC++ in the context of the new Visual Studio.NET environment. This book emphasizes using Visual C++ tools and wizards to generate code. Code examples are augmented with C++ language sidebars: Readers who need a refresher on the language or want to go further "under the hood" will have a context, while those who don't can easily skip that coverage. The revision includes more information throughout on Microsoft Foundation Classes (MFC), how Windows applications work, and how MFC abstracts the Windows functionality to simplify building applications. Chapters on managed code, ATL functionality, and interacting with VB and C# components will help users begin to master the new .NET aspects of Visual C++.



Source code for the examples developed in the book - 2,924 kb -- code.zip

Sample Content

Online Sample Chapters

Frequently Asked Questions: Visual C++ .NET

Interacting with Visual Basic and C# Components

Interacting with Visual Basic and C# Components

Interacting with Visual Basic and C# Components

Using Common Dialogs in C++.NET

Table of Contents

(NOTE: Each chapter concludes with Summary, Questions and Answers, Workshop, Quiz, and Exercise Sections.)


How This Book Is Organized. Conventions Used In This Book.

Week 1. At a Glance.

Day 1. Building Your First Application in the Visual C++ Development Environment.

Touring the Visual C++ Development Environment. Starting Your First Project. Designing Your Application Window. Adding Code to Your Application. Adding Finishing Touches.

Day 2. Debugging Your Application.

What Is Debugging? Debug-Aiding Code. The Visual Studio Debugging Tools. Building a Faulty Application. Debugging the Application.

Day 3. Using Controls in Your Application.

The Basic Windows Controls. Adding Controls to Your Window. Attaching Variables to Your Controls. Attaching Functionality to the Controls.

Day 4. Integrating Mouse and Keyboard to Allow User Interaction.

Understanding Mouse Events. Capturing Keyboard Events.

Day 5. Working with Timers.

Understanding Windows Timers. Placing a Clock on Your Application. Adding a Second Timer to Your Application.

Day 6. Adding Dialogs to Your Application for User Feedback.

Using Pre-existing (or System) Dialog Boxes. Creating Your Own Dialog Boxes.

Day 7. Creating Menus for Your Application.

Understanding Menus. Creating a Menu. Creating Context Menus. Creating a Menu with Accelerators.

Week 1. In Review.

Week 2. At a Glance.

Day 8. Working with Text and Fonts.

Finding and Using Fonts. Using Fonts.

Day 9. Incorporating Graphics, Drawings, and Bitmaps.

Understanding the Graphics Device Interface. Creating a Graphics Application.

Day 10. Creating SDI and MDI Applications.

Understanding the Document/View Architecture. Understanding MDI Applications. Creating an SDI Application. Saving and Loading the Drawing. Interacting with the Menu.

Day 11. Adding Toolbars and Status Bars.

Understanding Toolbars, Status Bars and Menus. Designing a Toolbar. Adding a Combo Box to a Toolbar. Adding a New Status Bar Element.

Day 12. Saving and Restoring Work.

Understanding Serialization. Implementing a Serializable Class.

Day 13. Updating and Adding Database Records Through ADO.

Understanding Database Access. Understanding ADO. Building a Database Application with ADO.

Day 14. Sharing Functionality with Other Applications Through DLLs.

Designing Classes. Why Create DLLs? Creating and Using an MFC Extension DLL. Creating and Using a Regular DLL.

Week 2. In Review.

Week 3. At a Glance.

Day 15. Building Your Own Widgets: Creating ActiveX Controls.

What Is an ActiveX Control? Creating an ActiveX Control.

Day 16. Adding Web Browsing Functionality to Your Applications.

The Internet Explorer ActiveX Model. The CHtmlView Class. Interacting with COM Interfaces. Building a Web-Browsing Application.

Day 17. Implementing Multitasking in Your Applications.

Understanding Multitasking. Building a Multitasking Application.

Day 18. Working with Internet Applications and Network Communications.

Understanding How Network Communications Work. Building a Networked Application.

Day 19. Working with Managed Code.

Understanding Microsoft's .NET Platform and the Common Language Runtime. Working with Managed C++. Writing a Managed C++ Application.

Day 20. Building Components with ATL.

What Is ATL? Building a Simple ATL Component.

Day 21. Interacting with Visual Basic and C# Components.

Mixing Languages: Realizing the Promise of the CLR. Building a Managed C++ Component with a C# Client. Building a C# Component with a Managed C++ Client. Building an Unmanaged C++ Client.

Week 3. In Review.

Appendix A. Answers to Quiz Questions.

Answers for Day 1. Answers for Day 2. Answers for Day 3. Answers for Day 4. Answers for Day 5. Answers for Day 6. Answers for Day 7. Answers for Day 8. Answers for Day 9. Answers for Day 10. Answers for Day 11. Answers for Day 12. Answers for Day 13. Answers for Day 14. Answers for Day 15. Answers for Day 16. Answers for Day 17. Answers for Day 18. Answers for Day 19. Answers for Day 20. Answers for Day 21.



Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership