C++ event callback converted to c# events
Posted on 2015-01-11
I have a C++ callback interface (bunch of pure virtual functions in a class). The c++ library is being instantiated in a c# class library now.
So naturally, I want to convert these "events" as c# events now.
My thinking is to create delegates in the wrapper library and convert them directly, firing them off to c#.
I know that on the C# side, if these events come from a different thread, I need to invokeLater.
Is there anything I could have done differently to make my life better here? Looking for any great ideas at all... :-)