You are also mixing GUI elements with a command line appilcation.
I'm updating a character-based app from Turbo Pascal 7 so that it will run under Win7+. It will remain character-based (no panels, components, etc.). However, I want to use Windows File Open/Save dialogs. So, yes, I'm mixing GUI elements with my application. Hence, I need Application.Initialize.
But there is a really good CHM package in the standard distribution of FPC.
You will find it in packages/chm and it is also cross-platform.
I'm using HelpNDoc (commercial) and the MS HTML Help Compiler (hhc.exe) to generate the chm file. Will the FPC CHM package help me beyond this? If so, can you point me to the specific code?
Do you think there's a problem with the following?
HtmlHelpA(0,pchar(helpfilename),HH_DISPLAY_TOPIC,ptruint(pchar(htmltopic)));
If not, what might cause the chm window to hang when Application.Initialize is called before the above? Could I need a new or different compiler directive?