Skip to main content

COM-to-.NET Interoperability—Advanced Topics

  • Chapter
Book cover COM and .NET Interoperability

Abstract

The point of this chapter is to round out your knowledge of exposing.NET types to COM applications by examining a number of advanced techniques. The first major topic is to examine how.NET types can implement COM interfaces to achieve binary compatibility with other like-minded COM objects (a topic first broached in Chapter 7). Closely related to this topic is the process of defining COM types directly using managed code. Using this technique, it is possible to build a binary-compatible.NET type that does not directly reference a related interop assembly (and is therefore a bit more lightweight). As for the next major topic, you examine the process of building a customized version of tlbexp.exe while also addressing how to programmatically register interop assemblies at runtime. Finally, you wrap up by taking a deeper look at the.NET runtime environment and checking out how a COM client can be used to build a custom host for.NET types. In addition to being a very interesting point of discussion, you will see that a custom CLR host can simplify COM-to-.NET registration issues.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
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

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2002 Andrew Troelsen

About this chapter

Cite this chapter

Troelsen, A. (2002). COM-to-.NET Interoperability—Advanced Topics. In: COM and .NET Interoperability. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0824-2_12

Download citation

  • DOI: https://doi.org/10.1007/978-1-4302-0824-2_12

  • Publisher Name: Apress, Berkeley, CA

  • Print ISBN: 978-1-59059-011-9

  • Online ISBN: 978-1-4302-0824-2

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics