Skip to main content

Managed-Unmanaged Transitions

  • Chapter
Expert C++/CLI
  • 858 Accesses

Abstract

In Chapter 1, I explained that calling functions across interoperability boundaries can be as easy as calling native functions from native code. Normal method declarations are sufficient for both directions of interoperability. You can simply rely on the C++/CLI compiler to handle all kinds of method calls with any kind of native arguments in the right way. These method calls include the following scenarios:

  • Managed code calling global or static functions compiled to native code

  • Native code calling global or static functions compiled to managed code

  • Managed code calling member functions of C++ classes that are compiled to native code

  • Native code calling member functions of C++ classes that are compiled to managed code

  • Managed code calling native functions via function pointers

  • Native code calling managed functions via function pointers

  • Managed code calling native virtual functions

  • Native code calling managed virtual functions

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover 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.

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Marcus Heege

About this chapter

Cite this chapter

(2007). Managed-Unmanaged Transitions. In: Expert C++/CLI. Apress. https://doi.org/10.1007/978-1-4302-0357-5_9

Download citation

Publish with us

Policies and ethics