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
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-0357-5_9
Publisher Name: Apress
Print ISBN: 978-1-59059-756-9
Online ISBN: 978-1-4302-0357-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books