title: Delphi console application: how to add OnHelp to message dialogs?
body: <p>I have a Delphi console application that updates components on a server.  It runs semi-interactively, there's the occasional prompt &quot;are you sure?&quot; etc, via this code:</p>
  <pre><code>MessageDlg('Are you sure?', mtConfirmation, [mbYes, mbNo, mbHelp], SOME_HELP_CONTEXT)...
  </code></pre>
  <p>As you can see, I'd like to supply help links to it, in this case going to our website with <code>SOME_HELP_CONTEXT</code> appended to our help page: <code>?contextid=SOME_HELP_CONTEXT</code></p>
  <p>I am doing this from our GUI programs and I assign <code>Application.OnHelp := myHelper;</code> where <code>myHelper</code> is a method of an object which simply calls <code>ShellExecute</code> to open the web link.</p>
  <p>But there's no Application variable in a console app.</p>
  <p>Is there a fairly simple way to achieve this?</p>