Apress

Essential Guide to Managed Extensions for C++

By Artur Laksberg , Siva Challa

Essential Guide to Managed Extensions for C++ Cover Image

This book is a comprehensive guide for programmers writing code in Managed Extensions for C++ (MC++).

Full Description

  • ISBN13: 978-1-893115-28-6
  • 344 Pages
  • User Level: Beginner to Advanced
  • Publication Date: January 28, 2002
  • Available eBook Formats: PDF
  • Print Book Price: $44.95
  • eBook Price: $31.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

  • Features how to write .NET applications using C++, and how to mix unmanaged and managed C++ code in the same application
  • Details when and why to use unmanaged code in .NET developments
  • Includes code samples with detailed explanations in every chapter

The Essential Guide to Managed Extensions for C++ is a comprehensive guide for programmers writing code in Managed Extensions for C++ (MC++). The information in this book comes straight from the horse's mouth—both authors have been key members of the Visual C++ .NET compiler development team and have spent most of their time implementing the language and educating others about managed C++.

The book is divided into two parts. Part One covers the basics of MC++. It starts with an introduction to MC++, and gives a brief overview of the .NET Framework. Next, it delves directly into the various features of MC++, including managed classes, interfaces, value types, properties, enumerations, pointers, arrays, operators, delegates, attributes, events, and exceptions.

Part Two of the book is devoted to the transition between the managed and unmanaged worlds. It starts with a general introduction to interoperability between managed and unmanaged code. The following chapters describe the Platform Invoke service, interoperability between COM and .NET, and various data marshaling techniques. The last chapter of Part Two shows how MC++ can be used to write interoperability layers over existing components with minimal overhead.

Table of Contents

Table of Contents

  1. Hello, World!
  2. The .NET Framework
  3. Managed Classes
  4. Interfaces
  5. Value Types
  6. Pointers, References, and Conversions
  7. Arrays
  8. Enumerations
  9. Properties
  10. Operators
  11. Attributes
  12. Delegates
  13. Events
  14. Exceptions
  15. Transition from Native to Managed Code
  16. Platform Invoke Service
  17. Accessing COM Components from .NET
  18. Accessing .NET Components from COM
  19. Data Marshaling between COM and .NET
  20. Managed Wrappers for Native Types
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

* Required Fields

No errata are currently published