Essential Guide to Managed Extensions for C++

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

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

Author(s): Siva Challa, Artur Laksberg (auth.)
Edition: 1
Publisher: Apress
Year: 2002

Language: English
Pages: 344
Tags: Software Engineering/Programming and Operating Systems

Front Matter....Pages i-xxix
Front Matter....Pages 1-1
Hello, World!....Pages 3-7
The .NET Framework....Pages 9-17
Managed Classes....Pages 19-43
Interfaces....Pages 45-54
Value Types....Pages 55-65
Pointers, References, and Conversions....Pages 67-80
Arrays....Pages 81-91
Enumerations....Pages 93-100
Properties....Pages 101-110
Operators....Pages 111-124
Attributes....Pages 125-137
Delegates....Pages 139-153
Events....Pages 155-169
Exceptions....Pages 171-183
Front Matter....Pages 185-185
Transition from Native to Managed Code....Pages 187-200
Platform Invoke Service....Pages 201-218
Accessing COM Components from .NET....Pages 219-245
Accessing.NET Components from COM....Pages 247-260
Data Marshaling between COM and.NET....Pages 261-277
Managed Wrappers for Native Types....Pages 279-295
Back Matter....Pages 297-354