procedure TMainFrm.miHelpClick(Sender: TObject);
var
pchar;
begin
if FileExists(ExtractFilePath(Application.Exename)+'HELP.chm') then
begin
p:=pchar(ExtractFilePath(Application.Exename)+'HELP.chm');
ShellExecute(0, nil, p, nil, nil, SW_NORMAL);
end;
end;