如何调用帮助文件 程序做完了,帮助(.chm格式)也作好了,怎样在程序中调用呢?谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 uses ShellAPI;ShellExecute('open', 'your.chm', nil, nil, SW_SHOW); 错了一点,好了一个参数,应该是:ShellExecute(0, 'open', 'your.chm', nil, nil, SW_SHOW); 方法一:uses中包含ShellAPIbeginApplication.HelpFile := ExtractFilePath('Application.ExeName');ShellExecute(0, 'open', PChar(Application.HelpFile+'Help.chm'), nil, nil, SW_SHOW);end;方法二:procedure TForm1.Button1Click(Sender: TObject);varp:pchar;begin if FileExists(ExtractFilePath(Application.Exename)+'YLJXC.chm') then begin p:=pchar(ExtractFilePath(Application.Exename)+'YLJXC.chm'); ShellExecute(0, nil, p, nil, nil, SW_NORMAL); end else begin p:=pchar(ExtractFilePath(Application.Exename)+'Index.HTM'); ShellExecute(0, nil, p, nil, nil, SW_NORMAL); end;end; filepath:='c:\yourhelp.chm';ShellExecute(0, 'open', filepath, nil, nil, SW_SHOW); shellexecute(handle,open,pchar(hel.chm),'','',sw_shownormal); shellexecute(handle,open,pchar(hel.chm),nil,nil,sw_shownormal);uses中添加ShellAPI 请大侠指点 delphi7 关于ADOQuery1.Active问题 关于List index out of bounds(0) GetBitmap函数的问题! query1.SQL.Add | come in baby 写文本的简单问题-写空格和黑方框 DBGRIDEH 怎么设置行高? 呵呵 求一条UPDATE语句,很容易的,解决立刻结贴! dbgrid里面怎么进行快速查找 理都没人理?!太过分了吧!? 一个巨菜的问题(一个刚开始看的傻瓜^^|b) 200分征集一些权限管理的意见,进者有分 急:如何在动态库的MDI窗体释放时释放所有资源
ShellExecute(0, 'open', 'your.chm', nil, nil, SW_SHOW);
uses中包含ShellAPI
begin
Application.HelpFile := ExtractFilePath('Application.ExeName');
ShellExecute(0, 'open', PChar(Application.HelpFile+'Help.chm'), nil, nil, SW_SHOW);
end;
方法二:
procedure TForm1.Button1Click(Sender: TObject);
var
p:pchar;
begin
if FileExists(ExtractFilePath(Application.Exename)+'YLJXC.chm') then
begin
p:=pchar(ExtractFilePath(Application.Exename)+'YLJXC.chm');
ShellExecute(0, nil, p, nil, nil, SW_NORMAL);
end
else
begin
p:=pchar(ExtractFilePath(Application.Exename)+'Index.HTM');
ShellExecute(0, nil, p, nil, nil, SW_NORMAL);
end;
end;
filepath:='c:\yourhelp.chm';
ShellExecute(0, 'open', filepath, nil, nil, SW_SHOW);
uses中添加ShellAPI