O'Reilly logo

The Old New Thing: Practical Development Throughout the Evolution of Windows by Raymond Chen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter Twelve. Digging into the Visual C++ Compiler

FOR A LITTLE while, I’m going to abandon compiler agnosticism and dig into some details of Microsoft’s Visual C++ compiler. Actually, the opening discussion on destructors applies to C++ in general, and the layout of a COM object is part of the Win32 application binary interface, so it is applicable to all compilers and languages that support COM, not just Microsoft’s Visual C++ compiler. But as we dig deeper, we get into details that are more and more compiler specific.

Do you know when your destructors run?

DESTRUCTORS ARE A magical part of C++. They are not invoked explicitly under normal circumstances; instead, the compiler inserts calls to the destructor at appropriate points in program ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required