Essential Guide To Managed Extensions For C

Essential Guide To Managed Extensions For C
Authors
Siva Challa, Artur Laksberg
ISBN
1893115283
Published
29 Jan 2002
Purchase online
amazon.com

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

Editorial Reviews

  • 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

  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

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Engineers are all basically high-functioning autistics who have no idea how normal people do stuff.” - Cory Doctorow