Using the step-by-step approach explained in Chapter 7, you can inject managed code parts into a C++ project. Due to the source code compatibility, you can easily call from native code to managed code by just declaring the functions you want to call. However, in the samples discussed so far, the managed functions called from native code and the native functions called from managed code have had void as a return type, and no arguments. For nontrivial scenarios, functions with less simplistic signatures are obviously needed.
KeywordsGarbage Collection Native Class Native Type Native Pointer Native Code
Unable to display preview. Download preview PDF.