//Assume you have managed to somehow pass a function pointer from C++ as Cplussplusfunctionptr to C#. In my case I was lucky, becoz I had managed C++ as a mid layer to convert void* to IntPtr; IntPtr func = Cplussplusfunctionptr; GuiFactoryOnNotify delegateOnNotify = (GuiFactoryOnNotify)Marshal.GetDelegateForFunctionPointer (func, typeof(GuiFactoryOnNotify));
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)