I need to implement an event mechanism similar to C# in C++.
- C++ Class will raise an event
- CLI Class will subscribe the C++ class event
- Then CLI class will raise another event
- C# class will subscribe the CLI event
This is the logic I am looking for. Is there any mechanism to achieve this?
I tried by passing Function pointers.But its not working as expected