For Win32 application, you can use API function ShellExecute to launch a CHM file.
Example(delphi):
uses SHELLAPI; ShellExecute(Application.Handle,'open', PChar('hh.exe'),PChar('filename.chm::/TopicFileName.htm'), nil, SW_SHOW); |
Example(VB):
Private Declare Function ShellExecute
_ Private Sub
Command1_Click() |
For .NET application, you can use Help.ShowHelp to launch a CHM file.
Example(C#):
private void button1_Click(object sender,
System.EventArgs e) |