How to use Callback interface from unmanaged code in Managed C++
-
How to get callback in managed C++/CLI from unmanaged code, my managed code class has implemented unmanaged COM interface ,how shall i do that
-
How to get callback in managed C++/CLI from unmanaged code, my managed code class has implemented unmanaged COM interface ,how shall i do that
i think this will help http://blogs.microsoft.co.il/blogs/alon/archive/2007/05/29/Native-Callback.aspx[^] Величие не Бога может быть недооценена.
-
i think this will help http://blogs.microsoft.co.il/blogs/alon/archive/2007/05/29/Native-Callback.aspx[^] Величие не Бога может быть недооценена.
Your link is not clickable.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
How to get callback in managed C++/CLI from unmanaged code, my managed code class has implemented unmanaged COM interface ,how shall i do that
Just pull out the useful part from the link. http://blogs.microsoft.c.il/blogs/alon/archive/2007/05/29/Native-Callback.aspx I genrally use method #4 because many of my callbacks are in the form of interface classes (e.g. "ICallback"). I create a "bridge" class (unmanaged class built in a managed dll) with an implementation of the unmanaged callback that marshals any parameters to the managed world, then calls a similar method on a gcroot'ed handle to a managed interface.
Bob Ciora