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