Call a C# method/function from a C++ DLL (which is loaded from C# with “Dllimport”)
问题 It's a little hard to resume it in a single title, so here my situation. I'm building a C# application that loads a C++ library. I call functions from that C++ DLL. But I'd also like my C++ DLL to call functions from the C# application (that is importing/running it)... Here a piece of code to make it a little more comprehensive : // I'm importing functions from my native code [DllImport(dllFilePath, CallingConvention = CallingConvention.Cdecl)] public static extern int returnIntValue(int