I need to be able to invoke arbitrary C# functions from C++. In-process Interoperability suggests using ICLRRuntimeHost::ExecuteInDefaultAppDomain(), but this only allows me to invoke methods having this format: int method(string arg)
What is the best way to invoke arbitrary C# functions?
Compile your C++ code with the /clr flag. With that, you can call into any .NET code with relative ease.
For example:
Does this count as ‘C++’? Well, it’s obviously not Standard C++ …