Microsoft Visual C++ Windows Applications by Example

Code and explanation for real-world MFC C++ Applications
Preview in Mapt

Microsoft Visual C++ Windows Applications by Example

Stefan Björnander

Code and explanation for real-world MFC C++ Applications
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Microsoft Visual C++ Windows Applications by Example Book Cover
Microsoft Visual C++ Windows Applications by Example
$ 26.99
$ 18.90
Blend for Visual Studio 2012 by Example: Beginner's Guide Book Cover
Blend for Visual Studio 2012 by Example: Beginner's Guide
$ 43.99
$ 30.80
Buy 2 for $35.00
Save $35.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781847195562
Paperback440 pages

Book Description

With this book you will learn how to create applications using MDI, complex file formats, text parsing and processing, graphics, and interactions. Every essential skill required to build Windows desktop-style applications is covered in the context of fully working examples.

The book begins with a quick primer on the C++ language, and using the Visual C++ IDE to create Windows applications. This acts as a recap for existing C++ programmers, and a quick guide to the language if you've not worked with C++ before. The book then moves into a set of comprehensive example applications, presenting the important parts of the code with explanation of how it works, and how and when to use similar techniques in your own applications.

The applications include: a Tetris-style game, a drawing application, a spreadsheet, and a word processor.

If you know the C++ language, or another Windows-based programming language, and want to use C++ to write real, complex applications then this book is ideal for you.

Table of Contents

Chapter 1: Introduction to C++
The Compiler and the Linker
The First Program
Comments
Types and Variables
Expressions and Operators
Statements
Functions
The Preprocessor
The ASCII Table
Summary
Chapter 2: Object-Oriented Programming in C++
The Object-Oriented Model
Classes
Inheritance
Dynamic Binding
Arrays of Objects
Pointers and Linked Lists
Operator Overloading
Exceptions
Templates
Namespaces
Streams and File Processing
Summary
Chapter 3: Windows Development
Visual Studio
The Document/View Model
The Message System
The Coordinate System
The Device Context
The Registry
The Cursor
Serialization
Summary
Chapter 4: Ring: A Demonstration Example
The Application Wizard
Colors and Arrays
Catching the Mouse
Drawing the Rings
Setting the Coordinate System and the Scroll Bars
Catching the Keyboard Input
Menus, Accelerators, and Toolbars
The Color Dialog
The Registry
Serialization
Summary
Chapter 5: Utility Classes
The Point, Size, and Rectangle Classes
The Color Class
The Font Class
The Caret Class
The List Class
The Set Class
The Array Class
Error Handling
Summary
Chapter 6: The Tetris Application
The Tetris Files
The Figure Class
The Figure Information
Summary
Chapter 7: The Draw Application
Draw.cpp
The Resource
The Class Hierarchy
The Figure Class
The TwoDimensionalFigure Class
The LineFigure Class
The ArrowFigure Class
The RectangleFigure Class
The Ell ipseFigure Class
The TextFigure Class
The FigureFileManager Class
The Document Class
The View Class
Summary
Chapter 8: The Calc Application
Calc.cpp
The Resource
Formula Interpretation
The Spreadsheet
The Document/View Model
Summary
Chapter 9: The Word Application
Word.cpp
The Resource
The Page
The Document Class
The View Class
Summary

What You Will Learn

When you read this book, you will learn to:

  • Build larger, more powerful, user friendly C++ applications
  • Create MDI (multiple document interface) applications and use other Windows application interface elements
  • Create memory structures for complex application objects: documents, spreadsheets, drawings
  • Save files to represent these memory structures
  • Parse and process text, display interactive graphics, and handle input from the mouse and the keyboard

Authors

Table of Contents

Chapter 1: Introduction to C++
The Compiler and the Linker
The First Program
Comments
Types and Variables
Expressions and Operators
Statements
Functions
The Preprocessor
The ASCII Table
Summary
Chapter 2: Object-Oriented Programming in C++
The Object-Oriented Model
Classes
Inheritance
Dynamic Binding
Arrays of Objects
Pointers and Linked Lists
Operator Overloading
Exceptions
Templates
Namespaces
Streams and File Processing
Summary
Chapter 3: Windows Development
Visual Studio
The Document/View Model
The Message System
The Coordinate System
The Device Context
The Registry
The Cursor
Serialization
Summary
Chapter 4: Ring: A Demonstration Example
The Application Wizard
Colors and Arrays
Catching the Mouse
Drawing the Rings
Setting the Coordinate System and the Scroll Bars
Catching the Keyboard Input
Menus, Accelerators, and Toolbars
The Color Dialog
The Registry
Serialization
Summary
Chapter 5: Utility Classes
The Point, Size, and Rectangle Classes
The Color Class
The Font Class
The Caret Class
The List Class
The Set Class
The Array Class
Error Handling
Summary
Chapter 6: The Tetris Application
The Tetris Files
The Figure Class
The Figure Information
Summary
Chapter 7: The Draw Application
Draw.cpp
The Resource
The Class Hierarchy
The Figure Class
The TwoDimensionalFigure Class
The LineFigure Class
The ArrowFigure Class
The RectangleFigure Class
The Ell ipseFigure Class
The TextFigure Class
The FigureFileManager Class
The Document Class
The View Class
Summary
Chapter 8: The Calc Application
Calc.cpp
The Resource
Formula Interpretation
The Spreadsheet
The Document/View Model
Summary
Chapter 9: The Word Application
Word.cpp
The Resource
The Page
The Document Class
The View Class
Summary

Book Details

ISBN 139781847195562
Paperback440 pages
Read More

Read More Reviews

Recommended for You

Drupal 7 Module Development Book Cover
Drupal 7 Module Development
$ 26.99
$ 18.90
Drupal 6 Panels Cookbook Book Cover
Drupal 6 Panels Cookbook
$ 23.99
$ 16.80
Drupal 7 Themes Book Cover
Drupal 7 Themes
$ 23.99
$ 16.80
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
GlassFish Security Book Cover
GlassFish Security
$ 26.99
$ 18.90
Drupal 7 Book Cover
Drupal 7
$ 26.99
$ 18.90