title: Calling event handler directly
body: <p>Having trouble to call an event handler directly from my code. I found the same question 2 years ago here.
  <a href="https://stackoverflow.com/questions/18467103/how-to-call-an-event-handler-method-directly-in-wxwidgets-without-an-event">original question</a></p>
  
  <p>But the line
  <code>me_InsertCommentText(wxCommandEvent());</code>
  is not compiling (mingw32-gcc 4.8, win7, codeblocks, wxFormBuilder)</p>
  
  <blockquote>
    <p>error: no matching function for call to 'mjpgen_wdDialog::me_InsertCommentText(wxCommandEvent)'
    note: candidate is:
    note: void mjpgen_wdDialog::me_InsertCommentText(wxCommandEvent&amp;)</p>
  </blockquote>
  
  <p>For me that appears to be caused by the calling by reference parameters.
  How can I get this to work?</p>