I've got the following class definition defined in unmanaged C++:
virtual void onStarted() = 0;
virtual void onStopped() = 0;
virtual void onResults(std::vector<Foo> foo, Results results) = 0;
This class is consumed by an unmanaged C++ library (of which I can' t really change the implementation).
How do I wrap this class in C++/CLI so it can be:
1) Consumed by C# (managed client)
2) The C# implementation will provide definitions for the virtual functions.
The unmanaged library needs to call the onStarted() & onStopped() callbacks
I can't change the underlying unmanaged C++ implementation (as we have existing unmanaged C++ clients)
How do I do this?