title: C++ to C# event handling
body: <p>So I've got my <strong>C#</strong> WinForm Application, from it I call my <strong>C++ CLI MFC dll</strong> library.</p>
  
  <p>But there are some <strong>events</strong> on my C++ library, even this events happens in native (non-CLI) part of this library. And I need to call some code from my C# application and get some data maybe right there on this event.</p>
  
  <p>so when this native function is called from client side :</p>
  
  <pre><code>bool __stdcall ClassName::WorkQuery()
  {
           ......
          switch(pp-&gt;code)
          {
          case READCOMPLEX:
                         ..........
  </code></pre>
  
  <p>I need to bring the Data from C# <strong>so I need to register this as event somehow.</strong></p>