shellexecute(nil,pchar('c:\help.chm'),nil,nil,sw_shownormal)

解决方案 »

  1.   

    编译不通过阿
    [Error] Unit1.pas(29): Undeclared identifier: 'shellexecute'
      

  2.   

    搞定了,具体是1. 在uses中要添加shellapi单元。 
    2.shellexecute(handle,'open',pchar(c:\help.chm'),nil,nil,sw_shownormal)
    谢谢各位的热心帮助!
      

  3.   

    好像上面的语句不对,下面的编译通过了:
    shellexecute(0,pchar('open'),pchar('c:\help.chm'),nil,nil,sw_shownormal);
      

  4.   

    不好意思,我回复的时候没看到pentimy(奔腾)的留言,我指的是taxi(的士)的语句。
      

  5.   

    winexec(...'hh.exe you.chm'....)
    制作CHM文件,可视化的制作工具,去http://cn.geocities.com/vchm2000看看吧!