For information, address Macmillan Publishing, 201 West 103rd Street, Indianapolis, IN 46290.
Copyright, Macmillan Computer Publishing. All rights reserved.
Introduction
Chapter 1 - The Visual C++ Development Environment--Building Your First Visual C++ Application
Chapter 2 - Using Controls in Your Application
Chapter 3 - Allowing User Interaction--Integrating the Mouse and Keyboard in Your Application
Chapter 4 - Working with Timers
Chapter 5 - Getting User Feedback--Adding Dialog Boxes to Your Application
Chapter 6 - Creating Menus for Your Application
Chapter 7 - Working with Text and Fonts
Chapter 8 - Adding Flash--Incorporating Graphics, Drawing, and Bitmaps
Chapter 9 - Adding ActiveX Controls to Your Application
Chapter 10 - Creating Single Document Interface Applications
Chapter 11 - Creating Multiple Document Interface Applications
Chapter 12 - Adding Toolbars and Status Bars
Chapter 13 - Saving and Restoring Work--File Access
Chapter 14 - Retrieving Data from an ODBC Database
Chapter 15 - Updating and Adding Database Records Through ADO
Chapter 16 - Creating Your Own Classes and Modules
Chapter 17 - Sharing Your Functionality with Other Applications--Creating DLLs
Chapter 18 - Doing Multiple Tasks at One Time--Multitasking
Chapter 19 - Building Your Own Widgets--Creating ActiveX Controls
Chapter 20 - Internet Applications and Network Communications
Chapter 21 - Adding Web Browsing Functionality to Your Applications
Appendix A
- C++ Review
Appendix B - Answers - 579
Appendix C - Printing and Print Previewing
Appendix D - Understanding and Exception Handling
Appendix E - Using the Debugger and Profiler
Appendix F - Using MFC's Helper Classes - 699
Copyright, Macmillan Computer Publishing. All rights reserved.
JON BATES
has worked on a whole range of commercial, industrial, and military software development projects worldwide over the past fifteen years. He is currently working as a self-employed software design consultant and contract software developer,
Jon began his career writing computer
He has written system and application software as diverse as device drivers, email, production modeling, motion video, image analysis, network and telecommunications, data capture, control systems, estimating and costing, and visualization software. He has also written a number of technical articles for computing journals on a range of topics.
Jon lives with his wife, Ruth, and dog, Chaos, in the middle of cool Britannia. When not playing with computers, he likes to sleep and dream of fractals.
You can reach Jon at jon@chaos1.demon.co.uk and visit his Web site at www.chaos1.demon.co.uk.
To Dore, and the rest of my family, for being very patient with me while I was busy writing yet another book.
There are
As the reader of this book, you are our most important critic and commentator. We value your opinion and want to know what we're doing right, what we could do better, what areas you'd like to see us publish in, and any other words of wisdom you're willing to pass our way.
As the executive editor for the Programming team at Macmillan Computer Publishing, I welcome your comments. You can fax, email, or write me directly to let me know what you did or didn't like about this book--as well as what we can do to make our books stronger.
When you write, please be sure to include this book's title and author as well as your
| Fax: | 317-817-7070 |
| Email: | adv_prog@mcp.com |
| Mail: | Executive Editor |
| Programming | |
| Macmillan Computer Publishing | |
| 201 West 103rd Street | |
| Indianapolis, IN 46290 USA |
Welcome to Visual C++. Over the
If you are new to C++, don't worry. I've tried to make it easy for you to learn the C++ programming language while also learning how to build applications using the Visual C++ tools. Just in case you find yourself having trouble understanding some aspect of C++, I've included a brief overview of the programming language in Appendix A, "C++ Review."
If you've
This book is organized in weeks, with each set of seven days set off into a part unto itself. However, even though the book is organized in weeks, the topics are not neces-sarily organized that way.
For the first week, you'll be covering the basics of building applications with Visual C++. You'll learn how to use designers to design your application windows. You'll learn how to use various controls available to you as a Windows application developer. You'll also learn a lot about the Visual C++ development environment and the tools that it makes available to you.
By the time you begin the second week, you'll be doing more and more programming, as the topics become more involved. You'll still be using the Visual C++ tools to construct your applications, but the programming code will be getting a little more involved. You'll also start learning about more advanced topics, such as displaying graphics and creating SDI and MDI applications. Toward the end of the second week, you'll begin to work with databases. This topic spills over into the third and final week.
In the third week, you'll learn how to create your own modules, DLLs, and ActiveX controls. You'll also learn how to build multitasking applications, which perform multiple
After you finish the third week, you'll be ready to tackle the world of Windows programming with Visual C++. You'll have the skills and know-how required to build most Windows applications available today.
While you are reading this book, you will probably notice a couple conventions that have been used to make it easier for you to learn the topic being discussed.
All the source code in this book is provided in a
1: void main()
2: {
3: // if you are adding or changing code in an existing
4: // code snippet, I will point out the line numbers in the text
.
5: }
If a topic needs special attention, it will be set apart from the rest of the text by one of several special markers:
At the end of each day, you'll find a short quiz and one or two exercises to help make sure that you learned the topic you were
Enough said! You didn't buy this book to read about this book. You bought this book to learn how to use Visual C++ to build Windows applications. So go ahead and flip the page and get started programming...
Copyright, Macmillan Computer Publishing. All rights reserved.