Calling a C# function from unmanaged c++ (via a managed wrapper)
问题 I have C++ source & headers for a set of libraries which I need to call from a C# application. I've created a managed C++ wrapper around the functions I need and am able to call them from C# marshalling the data backwards and forwards. Now the hard part.. My unmanaged C++ library generates status messages as it runs and I'd like to be able to display these from the calling C# application. My current thinking goes like this: I'd like the unmanaged C++ library code to call a function in my C#