Can C++/CLI be used to call .NET code from native C++ applications? [closed]
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... You can always host the CLR in your native app. Daniel Earwicker If you have an existing native C++ app and want to avoid "polluting" it with too much CLR stuff, you can switch on the /clr flag for just one specific file and use a standard C++ header to provide an interface to it. I've done this in an old bit of code. In the header I have: void SaveIconAsPng(void *hIcon, const wchar_t