.NET and COM Interoperability Handbook, The

Book description

.NET/COM interoperability in depth: comprehensive techniques and strategies

  • The most in-depth guide to .NET/COM interoperability ever published!

  • Covers every .NET/COM interop option, "gotcha," and workaround

  • Offers practical strategies for .NET migration and long-term .NET/COM coexistence

  • Compares .NET to COM and Java

  • Addresses many advanced issues, including Interop marshaling, Primary Interop Assemblies, using ActiveX Controls from managed code, using COM+ Services from managed code, converting your COM+ Applications to XML Web Services and .NET Remoting

  • The .NET and COM Interoperability Handbook will help you move your Windows(-based software into the future without abandoning the investments you've already made. Writing from the perspective of the experienced COM/COM+ developer, Alan Gordon offers the most realistic, in-depth coverage of .NET/COM interoperability ever presented. He illuminates all your .NET/COM interoperability options, offering practical advice for both migration and long-term coexistence. Coverage includes:

  • What COM/COM+ developers must know first about .NET/COM interoperability

  • Using the .NET/COM interoperability resources built into Visual Studio .NET

  • Calling COM/COM+ components from .NET

  • Calling .NET components from Win32/COM applications

  • Using COM+ Services from .NET applications

  • Turning your COM+ applications into an XML Web Service without writing any code

  • Understanding the impact of COM apartment threading on .NET performance

  • Overcoming mismatches between COM reference counting and .NET garbage collection

  • Interop marshaling, ActiveX controls, .NET remoting, and much more

  • Table of contents

    1. Copyright
    2. The Integrated .NET Series From Object Innovations and Prentice Hall PTR
    3. About Prentice Hall Professional Technical Reference
    4. Preface
    5. Acknowledgments
    6. What's in a Name?
      1. Microsoft .NET
      2. XML Web Services
      3. The .NET Framework
      4. The .NET Framework SDK
      5. The CLR
      6. The .NET Framework Class Library
      7. ADO.NET
      8. ASP.NET
      9. Windows Forms
      10. Other Microsoft.NET Technologies
      11. Stale .NET-Related Names
      12. Comparing .NET to Java
      13. Summary
    7. Comparing COM and .NET
      1. What is a Software Component?
      2. What Is a Software Bus?
      3. Life Cycle Management
      4. Programming Language Independence
      5. Location Transparency
      6. Extensibility
      7. Versioning
      8. Summary
    8. Exploring the CLR
      1. Describing The CLR
      2. Defining Managed Code and Managed Data
      3. Types
      4. Assemblies
      5. MSIL
      6. How the Runtime Locates Assemblies
      7. Garbage Collection
      8. Code Access Security
      9. Summary
    9. A Quick Introduction to C#
      1. Getting Started with C#
      2. Creating a Simple Hello World Application
      3. Compiling and Linking the Hello World Application
      4. The Basic Operators in C#
      5. The Primitive Types Available in C#
      6. Creating and Manipulating a String in C#
      7. Creating and Using an Array in C#
      8. Declaring classes in C#
      9. Using Inheritance in C#
      10. Flow of Control Constructs
      11. Exception Handling in C#
      12. Summary
    10. Using Visual Studio .NET
      1. Introduction
      2. Summary
    11. An Introduction to COM Interop
      1. Introduction
      2. COM Interop
      3. Using COM Objects from .NET Clients
      4. Using .NET Objects from COM Clients
      5. Platform Invoke
      6. Summary
    12. Advanced .NET to COM Interop
      1. Object Life Cycle Implications
      2. Using COM Events in Managed Code
      3. Using COM-Rich Error Information in Managed Code
      4. Multithreading and COM Apartments
      5. Primary Interop Assemblies
      6. Advanced Interop Marshaling Considerations
      7. Using ActiveX Controls in Managed Code
      8. Performance Considerations
      9. Advanced Aspects of PInvoke
      10. Summary
    13. Advanced COM to .NET Interop
      1. Object Creation
      2. Object Life-Cycle Implications
      3. Overloaded Methods
      4. COM Apartments
      5. Using Types from the .NET Framework Class Library
      6. Class Interfaces Revisited
      7. Rich Error Information
      8. Using Windows Forms Controls
      9. ComVisible
      10. Handling Managed Events from a COM Client
      11. Deploying COM/Win32 Applications That Use .NET Components
      12. Summary
    14. Using COM+(Enterprise Services)
      1. A Couple of Big Caveats
      2. Creating a Serviced Component
      3. Creating a Client
      4. The Implementation of the Serviced Component Methods
      5. Summary
    15. XML Web Services
      1. Web Services: The Big Picture
      2. The ASP.NET Web Services Infrastructure
      3. Creating a Simple Web Service
      4. Creating and Consuming a Web Service with Visual Studio .NET
      5. XML Web Services and Data
      6. Returning Data Using a Dataset
      7. Transactions
      8. Summary
    16. .NET Remoting
      1. Why Do We Need .NET Remoting?
      2. .NET Remoting Architecture
      3. Categories of Remotable Types
      4. A Simple .NET Remoting Client and Server
      5. Configuration
      6. Code Organization
      7. Soapsuds
      8. Hosting Your Server in IIS
      9. Interoperation Between COM+ and Web Services
      10. Summary
    17. Migration and Interop Strategies
      1. Migration versus Interop
      2. Vertical Migration
      3. Horizontal Migration
      4. Summary

    Product information

    • Title: .NET and COM Interoperability Handbook, The
    • Author(s): Alan Gordon
    • Release date: December 2002
    • Publisher(s): Pearson
    • ISBN: 9780130461308