Chapter 7: Controlling Object Lifetimes


Download CD Content

Overview

In this chapter, you will learn how to:

  • How Microsoft .NET memory management differs from traditional C++ memory management

  • How to provide finalizers for your classes

  • How to implement a Dispose method for your classes

Now that you know how to create objects in C++ using the new operator, you’ll learn how object lifetimes are controlled in managed C++ and see how the managed approach differs from the traditional new-and-delete approach.




Microsoft Visual C++  .NET(c) Step by Step
Microsoft Visual C++ .NET(c) Step by Step
ISBN: 735615675
EAN: N/A
Year: 2003
Pages: 208

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net