R
Remi THOMAS [MVP]
Hi,
I did spend quite a long time finding how to call managed code from
unmanaged C++ class.
Here is the my final code:
http://xtware.com/mcallback/mcallback.htm
Is it the best way to do it?
Does
mgt^ callback = (mgt^)GCHandle::FromIntPtr(IntPtr(m_callback)).Target;
take long time to execute?
Can we do it a better way?
Remi
ps: I'll publish optimal solution in codeproject, there is so many people
having this question!
I did spend quite a long time finding how to call managed code from
unmanaged C++ class.
Here is the my final code:
http://xtware.com/mcallback/mcallback.htm
Is it the best way to do it?
Does
mgt^ callback = (mgt^)GCHandle::FromIntPtr(IntPtr(m_callback)).Target;
take long time to execute?
Can we do it a better way?
Remi
ps: I'll publish optimal solution in codeproject, there is so many people
having this question!