I am working on a task where UI is written in c# (WPF). And there is some other module which is implemented in native c++. I need to register callback from c++ module to c# module by which i can get updated value of any variable (like string type). For example : In c ++ :
String str =" ";
If there is any change done by c++ module on str like str= " and"; Then i need to send this updated value to c# module.
Please suggest me how i can do this?
P.S.: C# and c++ module are in different dll. If any thing need to change in dll property that is also ok for me.
Thanks in advance.