Murach's C++ 2008
How to code methods and event handlers
First, this chapter shows you how to code and call methods and how to generate event handlers for all types of events. Then, it shows you how delegates are used to wire an event to a method so you can change that wiring whenever you need to. This is an essential skill that is often treated too lightly or too late in other books.
|
|
|
|
How to code methods |
152 |
|
How to call methods |
154 |
|
When and how to pass arguments by reference
and by value |
156 |
|
|
How to generate an event handler for
any event |
158 |
|
How event wiring works |
160 |
|
How to handle multiple events with one
event handler |
162 |
|
|
The event handlers and the CalculateFutureValue
method |
164 |
|
Some of the generated code |
166 |
|
 |
|
|
|
|
© Copyright 1998-
Mike Murach & Associates, Inc. All rights reserved.
|
|
|