9780130132499

Getting Started with Microsoft Visual C++ 6 with an Introduction to MFC

by ; ; ;
  • ISBN13:

    9780130132499

  • ISBN10:

    0130132497

  • Edition: 2nd
  • Format: Paperback w/CD
  • Copyright: 2000-01-01
  • Publisher: Pearson College Div
  • View Upgraded Edition
  • Purchase Benefits
  • Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $37.01

Summary

This companion toC++ How to Program, Second Edition-- the world's most widely used C++ textbook -- carefully explains how to use Microsoft's Visual Studio 6 integrated development environment (IDE) and Visual C++ 6 to create Windows programs using the Microsoft Foundation Classes (MFC).Key topics include: Win32 and console applications; online documentation and Web resources; GUI controls; dialog boxes; graphics; message handling; the resource definition language; and the debugger. The book includes 15 "live-code" Visual C++/MFC programs with screen captures; dozens of tips, recommended practices and cautions; and exercises accompanying every chapter. This book is part of a family of resources for teaching and learning C++, including a Web site with the book's code examples, an optional interactive CD-ROM (C & C++ Multimedia Cyberclassroom), and more.For anyone interested in developing with Visual C++ and MFC.

Table of Contents

1. Visual Studio 6 Integrated Development Environment.
Introduction. Integrated Development Environment Overview: Visual C++. Online Visual C++ Documentation. Creating and Executing a C++ Application. Debugger.

2. MFC Programming: Part 1.
Introduction. MFC Classes. Messages. MFC Resources. Hungarian Notation. Win32 Application Projects. Creating Simple C++ with MFC. Menus. Dialog Boxes.

3. MFC Programming: Part 2.
Introduction. Password Protection. Processing Mouse Messages. Processing Keyboard Input Messages. Text Output.

4. MFC Graphical User Interface Controls.
Introduction. Multiline Edit Text Control. Check Boxes. Radio Button. List Boxes. Combo Boxes.

5. MFC Graphics.
Introduction. Coordinate Systems. Colors. Drawing Functions. Drawing Properties. Shapes and Lines. Timers. Images. Fonts. Closing Remarks.

Appendix: MFC Resources.
Introduction. Resources. Tutorials. FAQs. Products. Newsletters and Publications. Newsgroups.

Bibliography.

Excerpts

Welcome to Visual C++ and the exciting world of Microsoft Foundation Classes (MFC)!This book is by four guys--HMD (Massachusetts Institute of Technology 1967), PJD (MIT 1991), TRN (MIT 1992) and ETS (University of Maryland 1969) who have been programming and/or teaching for 38, 16, 16 and 36 years, respectively. We got together to produce a book we hope you will find a valuable supplement to our book, C++ How to Program: Second Edition(ISBN # 0-13-528910-6), and to its optional multimedia companion, The Complete C++ Training Course: Second Edition(ISBN #0-13916305-0). Getting Started with Visual C++ 6 with an Introduction to MFCdoes not teach C++ programming. Rather it assumes that you know C++ or are learning it from any ANSI/ISO C++ textbook such as C++ How to Program: Second Edition. This textbook is part of a package we designed in cooperation with Microsoft to help you start creating, editing, and evolving C++ applications in the Microsoft Visual C++ 6 integrated development environment (IDE). The source code for all the MFC program examples in this book can be downloaded from our website: http://www.deitel.com Click the Downloadslink to access the source code for all our books. The vast majority of programs in C++ How to Program: Second Editionsuccessfully compile with the Microsoft Visual C++ 6.0 compiler. A listing of the few programs that do not compile properly, as well as appropriate fixes can be found on our web site at http://www.deitel.com/products_and_services/publications/ Click the link on this page for Getting Started with Visual C++ 6 with an Introduction to MFC. For technical support with any of our CD-ROMs or interactive Multimedia Cyber Classrooms, please contact Prentice Hall at tech_support@prenhall.com They respond promptly during regular business hours (East Coast Time; United States). We will be happy to answer your programming language questions via email at deitel@deitel.com We hope you enjoy this book and programming in Microsoft''s Visual C++ 6 integrated development environment with MFC! Why We Wrote Getting Started with Visual C++ 6.0 with an Introduction to MFC C++ How To Program: Second Editionteaches ANSI/ISO C++ programming--an internationally used language that does not provide capabilities for creating graphical user interfaces (GUIs). Many of our readers have asked us to prepare a supplement that would introduce the fundamental concepts of Microsoft Windows programming(i.e., creating graphical user interfaces and writing graphics-intensive programs) using MFC. Our adopters asked us to use the same "live-code" approach (i.e., teaching each concept in the context of complete working example programs followed by the screen dialogs) that we employ in all our How to Program Seriestextbooks. Our goal was clear: produce a Visual C++ 6 book for introductory university-level C++ programming courses that would supplement C++ How to Program: Second Editionor any other ANSI/ISO C++ textbook, and would introduce fundamental MFC GUI-and-graphics programming concepts. Our Approach to Presenting MFC The Microsoft Foundation Classes (MFC)library is a large collection of classes that help Visual C++ 6 programmers quickly create powerful Windows-based applications. MFC programming is a substantial and complex topic. Various 1000-page MFC books are available for full-semester advanced programming courses. Our book is not intended as an alternative to these. Rather it is intended as a supplement to the introductory/intermediate-level programming courses typically taught from generic ANSI/ISO C++ textbooks like our C++ How to Program: Second Edition.Most colleges do not teach MFC programming in these courses. But several have told us that they would like to offer a brief introduction to Windows programming with MFC in their C++ courses. Chapter One of the book describes how to create and run MFC-based programs using Microsoft''s Integrated Development Environment (IDE). Visual C++ provides so-called wizardsto generate a program''s skeletal codeor "boiler plate" code--the common code that a Windows program requires. The wizards generate this code and then mark the sections where programmers should fill in the code specific to their applications. Experienced programmers like wizards because they enable rapid application development.Editing the code generated by a wizard is not a task for beginning MFC programmers. This code is complex and requires a deep understanding of MFC. We do not use wizards in this book. Our approach is to build the student''s understanding of MFC fundamentals gradually by explaining small, narrowly-focused, complete examples. We feel that the student should first see and code small MFC programs to gain a solid understanding of MFC fundamentals. After studying this book, the student can then begin experimenting with wizards. Teaching Approach Getting Started with Visual C++ 6 with an Introduction to MFCcontains a rich collection of examples, exercises and projects drawn from many fields to provide the student with a chance to solve interesting real-world problems. The book concentrates on the principles of good software engineering and stresses program clarity. We avoid arcane terminology and syntax specifications in favor of teaching by example. Each of our code examples has been carefully tested. This book is written by four educators who spend most of their time teaching edge-of-the-practice topics in industry classrooms worldwide. The text emphasizes pedagogy. Introducing Object Orientation from Chapter Two. Getting Started with Visual C++ 6 with an Introduction to MFC"jumps right in" with object-oriented programming and even basic graphical user interface design from Chapter 2! MFC students really want to "cut to the chase." There is great stuff to be done in MFC so let''s get right to it! MFC is not trivial by any means, but it''s fun and students can see immediate results. Students can get graphical programs running quickly through MFC''s extensive class libraries of "reusable components." Live-Code Teaching Approach The book is loaded with live-code examples. This is the focus of the way we teach and write about programming, and the focus of each of our multimedia Cyber Classrooms.Virtually every new concept is presented in the context of a complete, working MFC program immediately followed by one or more windows showing the program''s output. We call this style of teaching and writing our live-code approach. We use the language to teach the language.Reading these programs is much like entering and running them on a computer. World Wide Web Access All of the code for Getting Started with Visual C++ 6 with an Introduction to MFCis on the Internet at the Prentice Hall Web site http://www.prenhall.com/deiteland at the Deitel & Associates, Inc. Web site http://www.deitel.com. Please download all the code then run each program as you read the text. Make changes to the code examples and see what happens. See how the Visual C++ 6 compiler "complains" when you make various kinds of errors. See the effects of making changes to the code. It''s a great way to learn MFC programming by doing MFC programming. Please respect the fact that this is copyrighted material. Feel free to use it as you study MFC, but you may not republish any portion of it without explicit permission from the authors

Rewards Program

Write a Review