如题!请各位大哥回答一下这个简单的问题

解决方案 »

  1.   

    ShellExecute(Handle, 'Open', 'g;\yourfile.chm', nil, nil, SW_SHOW)试试
      

  2.   

    但是,Delphi 说 [Error] Unit3.pas(179): Undeclared identifier: 'ShellExecute'
    在什么地方修改一下,急!!!!
      

  3.   

    uses中包含ShellAPI
    begin
    Application.HelpFile := ExtractFilePath('Application.ExeName');
    ShellExecute(0, 'open', PChar(Application.HelpFile+'Help.chm'), nil, nil, SW_SHOW);
    end;
      

  4.   

    如果您还得指定哪一个帮助索引,那么到 Google 查这个字:HTMLHELP_DEMO.ZIP
    有个还算好用的,附源码及演
      

  5.   

    String StrHelp;
    StrHelp = ChangeFileExt( Application->ExeName, ".chm" );
    WinExec(("HH "+StrHelp).c_str(),1);"HH"是*.chm的解释器,一定要加的