delphi调用chm帮助文件实例
2010-04-23 15:12
423 查看
delphi 中如何调用
CHM格式的帮助文件,包括一些其他细节的调用,谢谢!
---------------------------------------------------------------
用winexec
---------------------------------------------------------------
Uses ShellAPI
implementation
uses ShellAPI;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
ShellExecute(0, 'open', PChar(Application.HelpFile), nil, nil, SW_SHOW);
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Application.HelpFile := 'g:/NetShow.chm';
end;
---------------------------------------------------------------
或者:
implementation
{$R *.dfm}
function HtmlHelpA(hwndCaller: THandle; pazFile: String;
uCommand, dwData: DWord): DWord; stdcall external 'hhctrl.ocx';
procedure TForm1.Button1Click(Sender: TObject);
begin
HtmlHelpA(Handle, Application.HelpFile, 0, 0);
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Application.HelpFile := 'g:/NetShow.chm';
end;
---------------------------------------------------------------
function HtmlHelp(hwd : integer;pszFile : String;uCommand
:Integer;dwData :LongInt):integer; stdcall;external 'HHCtrl.ocx' name
'HtmlHelpA';
procedure TForm1.Button1Click(Sender: TObject);
begin
Htmlhelp(self.handle,'help/help.chm',0,0);
end;
CHM格式的帮助文件,包括一些其他细节的调用,谢谢!
---------------------------------------------------------------
用winexec
---------------------------------------------------------------
Uses ShellAPI
ShellExecute(handle,
'open', 'C:/wjiachun.chm',nil, nil, sw_ShowNormal);
---------------------------------------------------------------
implementationuses ShellAPI;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
ShellExecute(0, 'open', PChar(Application.HelpFile), nil, nil, SW_SHOW);
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Application.HelpFile := 'g:/NetShow.chm';
end;
---------------------------------------------------------------
或者:
implementation
{$R *.dfm}
function HtmlHelpA(hwndCaller: THandle; pazFile: String;
uCommand, dwData: DWord): DWord; stdcall external 'hhctrl.ocx';
procedure TForm1.Button1Click(Sender: TObject);
begin
HtmlHelpA(Handle, Application.HelpFile, 0, 0);
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Application.HelpFile := 'g:/NetShow.chm';
end;
---------------------------------------------------------------
function HtmlHelp(hwd : integer;pszFile : String;uCommand
:Integer;dwData :LongInt):integer; stdcall;external 'HHCtrl.ocx' name
'HtmlHelpA';
procedure TForm1.Button1Click(Sender: TObject);
begin
Htmlhelp(self.handle,'help/help.chm',0,0);
end;
相关文章推荐
- delphi调用chm帮助文件实例
- Delphi中调用CHM帮助文件
- 在Delphi中调用CHM帮助文件
- Delphi调用CHM帮助文件代码
- VB程序中调用CHM帮助文件
- 在WinForm中通过C#调用CHM帮助文件(转)
- Delphi7动态调用chm帮助文件,并使之打开指定的页面
- 如何通过C#调用CHM帮助文件
- Delphi调用CHM帮助文档
- 如何在VS.Net中使用C#语言调用CHM帮助文件
- HTML Help Workshop制作chm帮助文件和在应用程序中的调用
- 在Mapbasic中调用.chm帮助文件的方法
- 通过C#调用CHM帮助文件
- [转]在WinForm中通过C#调用CHM帮助文件
- Silverlight实用窍门系列:22.Silverlight使用WebService调用C++,Delphi编写的DLL文件【实例源码下载】
- Delphi 使用CHM文件制作系统帮助文档(上下文感知帮助的制作)
- 如何通过C#调用CHM帮助文件
- VC中调用CHM帮助文件
- Delphi 使用CHM文件制作系统帮助文档(上下文感知帮助的制作)
- 通过C#调用CHM帮助文件