calling managed c# functions from unmanaged c++
How to call managed c# functions from unmanaged c++ Or use a project of mine that allows C# to create unmanaged exports. Those can be consumed as if they were written in a native language. I used COM interop first, but by now I switched to IJW (it just works), as it is a lot simpler. I have a wrapper C++/CLR DLL (compile with /clr). A simple example (using statics to make the calls easier): namespace MyClasses { public class MyClass { public static void DoSomething() { MessageBox.Show("Hello World"); } } } In the DLL I can reference namespaces as follows: using namespace MyClasses; And call it