Search code examples
.netc++interopc++-cli

Can C++/CLI be used to call .NET code from native C++ applications?


I've done the other way around (calling pure C++ code from .NET) with C++/CLI, and it worked (for the most part).

How is the native-to-C++/CLI direction done?

I really don't want to use COM interop...


Solution

  • You can always host the CLR in your native app.