我做了一个小软件,也编写了一个名为PIM.CHM的帮助,在程序中能样绑定这个帮助呢?DELPHI的设置好像有.hpl格式的帮助绑定。没有.CHM的帮助。刚才有人这样做
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if key = 112 then   //112为F1键值
    winexec(.chm)
end;但是不能通过编绎。

解决方案 »

  1.   

    procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
      Shift: TShiftState);
    begin
      if key = 112 then   //112为F1键值
        winexec(pim.chm)
    end;错误:
    [Error] UnMain.pas(620): Undeclared identifier: 'pim'
      

  2.   

    ShellExecute(Handle, 'open', PChar(ExtractFilePath(Application.ExeName)+'pim.chm'), nil,  nil, SW_SHOWNORMAL);
      

  3.   

    if key = 112 then 
      ShellExecute(Application.Handle,PChar('Open'),PChar('pim.chm'),nil,nil,SW_SHOW);
      

  4.   

    uses ShellApi;
    winexec(pim.chm)ShellExecute(Handle,'open','pim.chm','','',SW_Show);