Skip to main content
  • Book
  • © 2002

Essential Guide to Managed Extensions for C++

Apress
  • Both authors are key members of the Visual C++ .NET compiler development team at Microsoft

  • This is the premier title published on .NET programming with C++

  • All chapters include code samples with detailed explanations

  • Includes supplementary material: sn.pub/extras

Buy it now

Buying options

eBook USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 44.95
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (20 chapters)

  1. Interoperability

    1. Accessing.NET Components from COM

      • Siva Challa, Artur Laksberg
      Pages 247-260
    2. Data Marshaling between COM and.NET

      • Siva Challa, Artur Laksberg
      Pages 261-277
    3. Managed Wrappers for Native Types

      • Siva Challa, Artur Laksberg
      Pages 279-295
  2. Back Matter

    Pages 297-354

About this book

  • 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.

Reviews

From the reviews:

"This book documents the extensions that Microsoft has added to C ++ to allow its use as a language in the .NET environment using CLR (Common Language Runtime). ... the authors have written a book that is very clearly focused on the needs of a C++ programmer faced with decisions about whether to use managed extensions or not. … I have no doubt that if you need to consider using MC++ this book will help you." (Francis Glassborow, CVU, June, 2002)

"What this book covers is virtually everything that a C++ programmer will need to write code using Managed Extensions for C++ (MC++). … an excellent tutorial of the various features of MC++. … contains the best explanation of managed extensions that you are likely to find. Topics are discussed in terms that make sense for C++ programmers. … The code samples are designed to give a clear explanation of the topic being discussed." (Thomas Paul, www.javaranch.com, May, 2002)

Authors and Affiliations

  • Redmond, USA

    Siva Challa, Artur Laksberg

About the authors

Artur Laksberg is a member of the Visual C++ Compiler Development Team at Microsoft. When not working, he can be seen cycling the backroads of the Puget Sound, reading books (military history being his latest passion), and programming.

Bibliographic Information

Buy it now

Buying options

eBook USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 44.95
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access