Hello dear friends! Thank you very much! You regularly help me!
Now I want to make the help system for my program. Found in the folder with Lazarus in the "examples" example "htmlhelp_ipro". I liked him!
I decided to try to remake for myself. I copied and connected the forms htmlhelp2viewer in uses. Created the main form event in his program "OnCreate", and added:
HtmlHelp2Viewer.RegisterHelpViewer;
I try to call the opening like this:
ShowHelpOrErrorForKeyword('','help/index.html');
Also added a non-visual component "HTMLHelpDatabase". Here are its properties:
object HTMLHelpDatabase1: THTMLHelpDatabase
BaseURL = 'file://help/'
AutoRegister = True
KeywordPrefix = 'help/'
left = 136
top = 304
end
Tell me please, I can not figure it out myself. When you try to open this help, the program writes "Access violation".
Thankful in advance for any help!
And immediately I apologize for my English. Also ready to show the source code.