Calling C# code from C++, but ExecuteInDefaultAppDomain() is too limited

There are several ways for a C++ application to invoke functions in a C# DLL.

  1. Using C++/CLI as an intermediate DLL
  2. Reverse P/Invoke
  3. Using COM
  4. Using CLR Hosting (ICLRRuntimeHost::ExecuteInDefaultAppDomain())
  5. Interprocess communication (IPC)
  6. Edit: Host a HTTP server and invoke via HTTP verbs (e.g. a REST style API)

Leave a Comment