I am working on a project that includes reuse as well as porting some existing MFC codes to C #.
The current code in MFC creates some threads and uses :: PostthreadeMessage () and ON_THREAD_MESSAGE (msg, func) for asynchronous communication between threads through messages.
:: PostthreadeMessage () → sends a message to a specific thread identifier. ON_THREAD_MESSAGE (msg, func) → calls the function (func) when a message is received (msg).
Since I am not very well versed in streaming interfaces in C #, I tried to find a similar API in C #, but could not find.
It would be great if someone can help me find the appropriate functions for this purpose in C #
source
share