Get 1 Year of unlimited Apress for $199
Instant access to all available titles and new releases Apress Access Subscription

Essential Guide to Managed Extensions for C++

By Artur Laksberg , Siva Challa

  • eBook Price: $31.99
  • Print Book Price: $44.95
Buy eBook Buy Print Book

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

  • Add to Wishlist
  • ISBN13: 978-1-893115-28-6
  • 344 Pages
  • User Level: Beginner to Advanced
  • Publication Date: January 28, 2002
  • Available eBook Formats: PDF

Related Titles

  • C# 6.0 and the .NET 4.6 Framework
  • Entertainment Apps On the Go with Windows 10
  • Moving to Office 365
  • Pro PowerShell for Microsoft Azure
  • Expert Performance Indexing in SQL Server
  • File Management Made Simple, Windows Edition
  • Learn Excel 2015 for OS X
  • Microservices, IoT, and Azure
  • Microsoft Mapping Second Edition
  • Pro SQL Server 2012 Administration
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.


Please Login to submit errata.

No errata are currently published


    1. PHP Objects, Patterns, and Practice


      View Book

    2. Beginning Android 3D Game Development


      View Book

    3. Troubleshooting Oracle Performance


      View Book

    4. Beginning Amazon Web Services with Node.js


      View Book