Hour 18
1: | How is event handling handled internally for a native C++ application? (Hint: Remove the __gc keywords and the namespace declarations from this hour's lesson.) |
A1: | Native C++ event handling uses a linked list that stores function pointers for each event handler. It also creates a special function that, when called, walks through the list and calls each of those functions. |
2: | How is a delegate related to an event? |
A2: | A delegate is another name for the event handler for that event. In other words, when a delegate is associated with an event, that delegate will be called when the event is fired. |
3: | How many function pointers can a delegate contain and how do you find out how many a certain delegate can call? |
A3: | A delegate can contain more ... |
Get Sams Teach Yourself Visual C++® .NET in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.