title: How do events in Delphi work?
body: <p>I'm trying to get console output from a program using this library <a href="http://www.koders.com/delphi/fidDB05C6361540F62D532FC7C960D4111CE3AAEDB3.aspx?s=download" rel="nofollow noreferrer">uZpRunConsoleApp</a>.
  It's well documented but I've not used Delphi for very long and I don't understand how events work.</p>
  
  <p>From what I can tell I need to call ExecuteConsoleApp with my application, which I have working with no output.  It looks like that method wants me to specify a function it can fire when an event happens but I don't understand how to do that.</p>
  
  <p>I hope somebody can spread some light here.</p>
  
  <p>I didn't post any code since this isn't really a code specific problem, but if somebody wants what I have so far I'll edit for them.</p>