我做了一个小软件,也编写了一个名为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;但是不能通过编绎。
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if key = 112 then //112为F1键值
winexec(.chm)
end;但是不能通过编绎。
Shift: TShiftState);
begin
if key = 112 then //112为F1键值
winexec(pim.chm)
end;错误:
[Error] UnMain.pas(620): Undeclared identifier: 'pim'
ShellExecute(Application.Handle,PChar('Open'),PChar('pim.chm'),nil,nil,SW_SHOW);
winexec(pim.chm)ShellExecute(Handle,'open','pim.chm','','',SW_Show);