So, I have my C # WinForm application from which I call my C ++ CLI MFC dll library.
But there are several events in my C ++ library, even this happens in the native (non-CLI) part of this library. And I need to call the code from my C # application and get some data, maybe right there at this event.
therefore, when this native function is called from the client side:
bool __stdcall ClassName::WorkQuery() { ...... switch(pp->code) { case READCOMPLEX: ..........
I need to bring data from C # , so I need to somehow register this as an event.
Masha source share