As I understand it I can use reverse P/Invoke to call C# from C++. Reverse P/Invoke is simply a case of:
- Create you managed (c#) class.
- Create a c++/cli (formerly managed c++) class library project. Use this to call the managed c# class (presumably via a reference).
- Call the c++/cli code from native c++.
Questions:
- Is this correct?
- Is the DLL created at step 2 known as a mixed mode DLL?
- Has C++/CLI completely superseded Managed C++ as far as MS are concerned?
- Is COM completely avoided using this approach?
- At what point would the CLR be created and run, and by whom?
Thanks in advance