11.1.2.4 Compile Help Engineering files
There are two types of compilers that can compile Help engineering files: HCP.EXE, H31. Exe. The files compiled by both compilers cannot be used in Winddow3.0, but can be used in Windows 3.1. Where HCP.EXE is the protection mode "compiler", it can better use memory. You must use HCP.EXE in the Windows DOS window.
There are two questions to note before compiling:
1. All source files must be saved in RTF format;
2. The following files must be in the same directory
All of them. RTF File
Help Compiler (HCP. Exe,hc31. EXE)
Compiler Error Information source file (HCD. Err,hc1. ERR)
Help Engineering files (. HPF)
Any file referencing a bitmap or shed (. Bmp. SHG)
If the above file is not in the same directory, you must define the appropriate path in the project file.
Compilation to be done in a DOS environment, command format:
Help_compiler_rootname Project_file_rootname
Help_compiler_rootname is a compiler name without an extension. Project_file_rootname is not
Help project filename with extension, such as:
HCP Myhelp
11.2 Delphi application's help programming
Delphi applications can easily apply the Help system. Programs can run the Help system dynamically. dialog boxes can be associated with the Help system.
11.2.1 define the application's Help file
To use the Help system in your application, you must have the appropriate help file. Programs can write their own Help files, or you can use the existing Help files. In addition, you want to define a help file for your application so that the application can open the appropriate help file when the user needs help.
Choose options in the Delphi Integrated development environment | Project menu item, the system ejects the Project selection dialog box, and then select the Application Options page and enter the Help file name in the secondary.