我用DELPHI和SQL SEVER做了一个系统,现在一个窗口做了一个
帮助按键,我想点它就能打开一个名为help.txt的使用帮助文档,代码要怎么写?
麻烦高手指教  (是不是begin和end中间要加什么代码?)
procedure Tmainform.N11Click(Sender: TObject);
beginend;

解决方案 »

  1.   

    uses shellapi;
    ShellExecute(self.Handle, 'Open', 'C:\aa.txt', Nil, Nil, SW_SHOWNORMAL);
      

  2.   

    我加了
    uses shellapi;
    ShellExecute(self.Handle, 'Open', 'C:\help.txt', Nil, Nil, SW_SHOWNORMAL);
    这样会报错啊
    [Error] Unit3.pas(245): Statement expected but 'USES' found
    [Error] Unit3.pas(246): Undeclared identifier: 'ShellExecute'
    [Fatal Error] Project1.dpr(26): Could not compile used unit 'Unit3.pas'
      

  3.   

    没见到更implementationuses shellapi;{$R *.dfm}procedure Tmainform.N11Click(Sender: TObject);
    begin
      ShellExecute(self.Handle, 'Open', 'C:\aa.txt', Nil, Nil, SW_SHOWNORMAL);
    end;