Synopses & Reviews
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++.
Learn Visual C++ through the Teach Yourself series, with sections on: Q&A, Do's and Don'ts, Workshop, Shaded syntax boxes, Type/Output/Analysis icons. Week One starts you with Visual C++. After installing and maneuvering through the components of the software, you'll examine a preliminary program to get the feel for C++ and Visual C++. You'll learn: C++ basics; hierarchies; members, functions, and objects; inheritance; MFC; installing Visual C++, the Visual C++ compiler. In Week Two, you'll look at components of Windows applications and how they are invoked with Visual C++. Topics include: keyboard input; mouse usage; data file handling; lists and serialization; toolbars and status bars; graphics; and projects. Week Three examines the more involved aspects of Visual C++ and Windows applications.
Learn Visual C++ through the "Teach Yourself" series. Week One starts you with Visual C++. In Week Two, you'll look at components of Windows applications and how they are invoked with Visual C++. Week Three examines the more involved aspects of Visual C++ and Windows applications.
In just three short weeks, readers can learn how to use Visual C++. The timesaving guide employs the proven elements of the "Teach Yourself" series for learning the Visual C++ environment and Visual C++ programming, promising the reader full functionality after completing the 21 comprehensive tutorials. Cover Title
About the Author
Davis Chapman first began programming computers while working on his Masters Degree in Music Composition. While writing applications for computer music, he discovered that he enjoyed designing and developing computer software. It wasn't long before he came to the realization that he stood a much better chance of eating if he stuck with his new-found skill and demoted his hard-earned status as a "starving artist" to a part-time hobby. Since that time, Davis has focused on the art of software design and development, with a strong emphasis on the practical application of Client/Server and Web/Internet technologies. Davis was the lead author for Building Secure Applications with Visual Basic, Sams Teach Yourself Visual C++ 6 in 21 Days, Web Development with Visual Basic 5 and Building Internet Applications with Delphi 2. Davis was also a contributing author on MFC Programming with Visual C++ 6 Unleashed, Special Edition Using Active Server Pages, and Running a Perfect Web Site, Second Edition. He has been a consultant working and living in Dallas, Texas, for the past 12 years. Davis can be reached at firstname.lastname@example.org.
Table of Contents
WEEK. 1 AT A GLANCE. Day Day 1. The Visual C++ Development Environment—Building Your First Visual C++ Application.
The Visual C++ Development Environment. Starting Your First Project. Designing Your Application Window. Adding Code to Your Application. Finishing Touches. Summary. Q&A. Workshop. Day Day 2. Using Controls In Your Application.
The Basic Windows Controls. Adding Controls to Your Window. Attaching Variables to Your Controls. Attaching Functionality to the Controls. Summary. Q&A. Workshop. Day 3. Allowing User Interaction—integrating The Mouse And Keyboard In Your Application.
Understanding Mouse Events. Capturing Keyboard Events. Summary. Q&A. Workshop. Day 4. Working With Timers.
Understanding Windows Timers. Placing a Clock on Your Application. Adding a Second Timer to Your Application. Summary. Q&A. Workshop. Day 5. Getting User Feedback—Adding Dialog Boxes To Your Application.
Using Pre-existing (or System) Dialog Windows. Creating Your Own Dialog Windows. Summary. Q&A. Workshop. Day 6. Creating Menus For Your Application.
Menus. Designing Menus. Creating a Menu. Creating Pop-Up Menus. Creating a Menu with Accelerators. Summary. Q&A. Workshop. Day 7. Working With Text And Fonts.
Finding and Using Fonts. Using Fonts. Summary. Q&A. Workshop. WEEK 1 IN REVIEW.
WEEK 2 AT A GLANCE. Day 8. Adding Flash—Incorporating Graphics, Drawing, And Bitmaps.
Understanding the Graphics Device Interface. Creating a Graphics Application. Summary. Q&A. Workshop. Day 9. Adding Activex Controls To Your Application.
What Is an ActiveX Control? 9. Adding an ActiveX Control to Your Project. Using an ActiveX Control in Your Application. Summary. Q&A. Workshop. Day 10. Creating Single Document Interface Applications.
The Document/View Architecture. Creating an SDI Application. Saving and Loading the Drawing. Interacting with the Menu. Summary. Q&A. Workshop. Day 11. Creating Multiple Document Interface Applications.
What Is an MDI Application? 9. Creating an MDI Drawing Program. Adding a Context Menu. Summary. Q&A. Workshop. Day 12. Adding Toolbars And Status Bars.
Toolbars, Status Bars, and Menus. Designing a Toolbar. Adding a Combo Box to a Toolbar. Adding a New Status Bar Element. Summary. Q&A. Workshop. Day 13. Saving And Restoring Work—file Access.
Serialization. Implementing a Serializable Class. Summary. Q&A. Workshop. Day 14. Retrieving Data From An Odbc Database.
Database Access and ODBC. Creating a Database Application Using ODBC. Summary. Q&A. Workshop. WEEK 2 IN REVIEW.
WEEK 3 AT A GLANCE. Day 15. Updating And Adding Database Records Through Ado.
What Is ADO? 9. Building a Database Application Using ADO. Summary. Q&A. Workshop. Day 16. Creating Your Own Classes And Modules.
Designing Classes. Creating Library Modules. Using Library Modules. Summary. Q&A. Workshop. Day 17. Sharing Your Functionality With Other Applications—Creating Dlls.
Why Create DLLs? 9. Creating and Using an MFC Extension DLL. Creating and Using a Regular DLL. Summary. Q&A. Workshop. Day 18. Doing Multiple Tasks At One Time—Multitasking.
What Is Multitasking? 9. Building a Multitasking Application. Summary. Q&A. Workshop. Day 19. Building Your Own Widgets—Creating Activex Controls.
What Is an ActiveX Control? 9. Creating an ActiveX Control. Summary. Q&A. Workshop. Day 20. Internet Applications And Network Communications.
How Do Network Communications Work? 9. Building a Networked Application. Summary. Q&A. Workshop. Day 21. Adding Web Browsing Functionality To Your Applications.
The Internet Explorer ActiveX Model. The CHtmlView Class. Building a Web-Browsing Application. Summary. Q&A. Workshop. WEEK 3 IN REVIEW.
APPENDIXES. Appendix A. C++ Review.
Creating Your First Application. Pointers. Classes. Inheritance. Summary. Appendix B. Answers.
Day 1. Day 2. Day 3. Day 4. Day 5. Day 6. Day 7. Day 8. Day 9. Day 10. Day 11. day 12. Day 13. Day 14. Day 15. Day 16. Day 17. Day 18. Day 19. Day 20. Day 21. Appendix C. Printing And Print Previewing.
Using the Framework's Functionality. Pagination and Orientation. Direct Printing Without the Framework. Appendix D. Understanding And Exception Handling.
Using Exceptions. MFC Exception Types. Appendix E. Using The Debugger And Profiler.
Creating Debugging and Browse Information. Tracing and Single Stepping. Additional Debugging Tools. Appendix F. Using MFC's Helper Classes.
Using the Collection Classes. Using the Coordinate-Handling Classes. Using the Time-Handling Classes. Using the String Manipulation Class. Index.