您的位置:首页 > 编程语言

这个代码应该怎么写???

2008-12-11 09:51 169 查看
这个代码应该怎么写??? Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiDB/html/delphi_20061222151309162.html

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

end;

shelllexecute

这个是什么?高手能写具体点吗?

uses shellapi;

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

我加了
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'

没见到更。。。

implementation

uses shellapi;

{$R *.dfm}

procedure Tmainform.N11Click(Sender: TObject);
begin
ShellExecute(self.Handle, 'Open', 'C:\aa.txt', Nil, Nil, SW_SHOWNORMAL);
end;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐