CHAPTER 1Introducing C++/CLI

This chapter introduces the C++/CLI language extensions to C++ and shows you the classic "Hello, World" example in C++/CLI. You'll learn just enough about the runtime environment that executes your C++/CLI programs to get started with your first program. You'll also learn some of the features available in that environment, including access to the .NET Framework (or the CLI class libraries), the common type system, and other helpful features such as garbage collection.

Garbage Collection and Handles

One convenience of a managed language is garbage collection—that you no longer have to keep track of all the objects you create. Your C++/CLI objects will be collected and destroyed by a background process called the ...

Get Foundations of C++/CLI: The Visual C++ Language for .NET 3.5 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.